Skip to content

Commit 9031bbf

Browse files
committed
Generate rust bindings
Signed-off-by: Brian H <[email protected]>
1 parent ccab564 commit 9031bbf

File tree

13 files changed

+783
-13
lines changed

13 files changed

+783
-13
lines changed

Cargo.lock

Lines changed: 27 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ wit-parser = { git = "https://github.com/bytecodealliance/wasm-tools" }
2222
wasm-pkg-loader = "0.4.1"
2323
futures = "0.3.30"
2424
semver = "1.0.23"
25+
wit-bindgen-rust = { git = "https://github.com/fibonacci1729/wit-bindgen", branch = "deps" }
26+
wit-bindgen-core = { git = "https://github.com/fibonacci1729/wit-bindgen", branch = "deps" }
2527

2628
[target.'cfg(target_os = "linux")'.dependencies]
2729
# This needs to be an explicit dependency to enable

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.PHONY: install
2+
install:
3+
cargo build --release
4+
spin pluginify -i

example/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
src/bindings
2+
target/
3+
.spin/
4+
.wit/

0 commit comments

Comments
 (0)