Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated ver and build guide #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@

Let WebAssembly's exported function support more data types for its parameters and return values.

## Example
## Build and run Example

```
cd test/BindgenFuncs/wasm/rust_bindgen_funcs
cargo build --release --target=wasm32-wasi

cd test/BindgenFuncs/host/rust/
cargo build
./target/debug/bindgen-funcs ../../wasm/rust_bindgen_funcs/target/wasm32-wasi/release/rust_bindgen_funcs_lib.wasm
```

## Export Rust things to host program

Expand Down
122 changes: 117 additions & 5 deletions test/BindgenFuncs/host/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/BindgenFuncs/host/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
wasmedge-sys = "0.7.0"
wasmedge-sys = "0.9.0"
wasmedge-bindgen-host = { path = "../../../../host/rust" }
4 changes: 2 additions & 2 deletions test/BindgenFuncs/wasm/rust_bindgen_funcs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.