blob: 0ae646c54765d4b31b4d7899c8f2ecd253864c34 (
plain)
[package]
name = "rust-wasm-examples"
edition = "2021"
publish = false
# treat this as an independent package
[workspace]
[[bin]]
name = "hello"
path = "src/hello.rs"
[[bin]]
name = "host_fn"
path = "src/host_fn.rs"
[[bin]]
name = "print"
path = "src/print.rs"
[[bin]]
name = "tinywasm"
path = "src/tinywasm.rs"
[[bin]]
name = "tinywasm_no_std"
path = "src/tinywasm_no_std.rs"
[[bin]]
name = "fibonacci"
path = "src/fibonacci.rs"
[[bin]]
name = "argon2id"
path = "src/argon2id.rs"
[dependencies]
argon2 = { version = "0.5" }
dlmalloc = { version = "0.2", features = ["global"] }
tinywasm = { path = "../../crates/tinywasm", default-features = false, features = [
"archive",
"parser",
"validate"
] }
[features]
default = ["std"]
std = ["tinywasm/std"]
[profile.wasm]
inherits = "release"
opt-level = 3
strip = true
lto = "fat"
panic = "abort"
codegen-units = 1
|