Skip to content

Commit 39d6059

Browse files
committed
feat(go): begin implementation of Go bindgen
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent 9bf11b2 commit 39d6059

File tree

19 files changed

+3050
-102
lines changed

19 files changed

+3050
-102
lines changed

Cargo.lock

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,20 @@ nats = ["dep:wrpc-transport-nats"]
2626
wasmtime = ["dep:wrpc-runtime-wasmtime"]
2727

2828
[dependencies]
29+
anyhow = { workspace = true }
30+
clap = { workspace = true, features = [
31+
"color",
32+
"derive",
33+
"error-context",
34+
"help",
35+
"std",
36+
"suggestions",
37+
"usage",
38+
] }
39+
wit-bindgen-core = { workspace = true }
2940
wit-bindgen-wrpc = { workspace = true }
41+
wit-bindgen-wrpc-go = { workspace = true, features = ["clap"] }
42+
wit-bindgen-wrpc-rust = { workspace = true, features = ["clap"] }
3043
wrpc-interface-blobstore = { workspace = true }
3144
wrpc-interface-http = { workspace = true }
3245
wrpc-interface-keyvalue = { workspace = true }
@@ -96,6 +109,7 @@ wasmtime-wasi-http = { version = "20", default-features = false }
96109
webpki-roots = { version = "0.26", default-features = false }
97110
wit-bindgen-core = { version = "0.24", default-features = false }
98111
wit-bindgen-wrpc = { version = "0.3.6", default-features = false, path = "./crates/wit-bindgen" }
112+
wit-bindgen-wrpc-go = { version = "0.1.0", default-features = false, path = "./crates/wit-bindgen-go" }
99113
wit-bindgen-wrpc-rust = { version = "0.3.3", default-features = false, path = "./crates/wit-bindgen-rust" }
100114
wit-bindgen-wrpc-rust-macro = { version = "0.3.4", default-features = false, path = "./crates/wit-bindgen-rust-macro" }
101115
wit-parser = { version = "0.202", default-features = false }

crates/wit-bindgen-go/Cargo.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[package]
2+
name = "wit-bindgen-wrpc-go"
3+
version = "0.1.0"
4+
homepage = 'https://github.com/bytecodealliance/wit-bindgen'
5+
description = """
6+
Go bindings generator for wRPC
7+
"""
8+
authors = ["Roman Volosatovs <[email protected]>"]
9+
10+
categories.workspace = true
11+
edition.workspace = true
12+
license.workspace = true
13+
repository.workspace = true
14+
15+
[lib]
16+
test = false
17+
doctest = false
18+
19+
[dependencies]
20+
anyhow = { workspace = true }
21+
clap = { workspace = true, features = ["derive"], optional = true }
22+
heck = { workspace = true }
23+
wit-bindgen-core = { workspace = true }
24+
25+
[dev-dependencies]
26+
test-helpers = { workspace = true }

0 commit comments

Comments
 (0)