diff options
| author | Henry <mail@henrygressmann.de> | 2026-07-30 23:25:34 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-07-30 23:45:43 +0200 |
| commit | 3922e8d53ff48dd14bd4e7755e599a3248588714 (patch) | |
| tree | 80cc6c1a80530dfecd039b1db673d4f21d12755b /examples/rust/Cargo.toml | |
| parent | c7c26e8900e86f8b2116648e988b1e34c85f4077 (diff) | |
chore: update, remove Cargo.toml author field, format toml
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'examples/rust/Cargo.toml')
| -rw-r--r-- | examples/rust/Cargo.toml | 71 |
1 files changed, 37 insertions, 34 deletions
diff --git a/examples/rust/Cargo.toml b/examples/rust/Cargo.toml index 97f9674..efce27a 100644 --- a/examples/rust/Cargo.toml +++ b/examples/rust/Cargo.toml @@ -1,52 +1,55 @@ -# treat this as an independent package -[workspace] - [package] -publish=false -name="rust-wasm-examples" -edition="2021" +name = "rust-wasm-examples" +edition = "2021" +publish = false -[dependencies] -tinywasm={path="../../crates/tinywasm", default-features=false, features=["parser", "archive"]} -argon2={version="0.5"} -dlmalloc={version="0.2", features=["global"]} - -[features] -default=["std"] -std=["tinywasm/std"] +# treat this as an independent package +[workspace] [[bin]] -name="hello" -path="src/hello.rs" +name = "hello" +path = "src/hello.rs" [[bin]] -name="host_fn" -path="src/host_fn.rs" +name = "host_fn" +path = "src/host_fn.rs" [[bin]] -name="print" -path="src/print.rs" +name = "print" +path = "src/print.rs" [[bin]] -name="tinywasm" -path="src/tinywasm.rs" +name = "tinywasm" +path = "src/tinywasm.rs" [[bin]] -name="tinywasm_no_std" -path="src/tinywasm_no_std.rs" +name = "tinywasm_no_std" +path = "src/tinywasm_no_std.rs" [[bin]] -name="fibonacci" -path="src/fibonacci.rs" +name = "fibonacci" +path = "src/fibonacci.rs" [[bin]] -name="argon2id" -path="src/argon2id.rs" +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" +] } + +[features] +default = ["std"] +std = ["tinywasm/std"] [profile.wasm] -opt-level=3 -lto="fat" -codegen-units=1 -panic="abort" -inherits="release" -strip=true +inherits = "release" +opt-level = 3 +strip = true +lto = "fat" +panic = "abort" +codegen-units = 1 |
