blob: e0bdba6d60e19b17169fda7770288be5aad8badf (
plain)
[package]
name = "rust-wasm-examples"
edition = "2024"
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.6", default-features = false, features = ["alloc"] }
dlmalloc = { version = "0.2", features = ["global"] }
tinywasm = { path = "../../crates/tinywasm", default-features = false, features = ["archive", "parser"] }
[features]
default = ["std"]
std = ["tinywasm/std"]
[lints.clippy]
missing_safety_doc = "allow"
[profile.wasm]
inherits = "release"
opt-level = 3
strip = true
lto = "fat"
panic = "abort"
codegen-units = 1
|