rusqlite/examples/persons
gwenn 3c3d7daeb4 Fix uninlined_format_args
cargo clippy --all --all-targets --fix -- -Wclippy::uninlined_format_args
2023-12-23 14:21:23 +01:00
..
main.rs Fix uninlined_format_args 2023-12-23 14:21:23 +01:00
README.md Improve wasm32-wasi support 2023-05-25 22:26:56 +06:00

Persons example

Run

$ cargo run --example persons

Run (wasm32-wasi)

Requisites

# Set to wasi-sdk directory
$ export WASI_SDK_PATH=`<wasi-sdk-path>`
$ export CC_wasm32_wasi="${WASI_SDK_PATH}/bin/clang --sysroot=${WASI_SDK_PATH}/share/wasi-sysroot"
# Build
$ cargo build --example persons --target wasm32-wasi --release --features bundled
# Run
$ wasmtime target/wasm32-wasi/release/examples/persons.wasm
Found persons:
ID: 1, Name: Steven
ID: 2, Name: John
ID: 3, Name: Alex