summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-09-09 09:47:15 -0400
committerMica White <botahamec@outlook.com>2026-09-09 09:47:15 -0400
commit2cebe160fd72a08485f5709788d0e5c8f275d17a (patch)
tree5bd9721fcb7525cbf44e307c37ba27d66a56fdd0 /examples
parent5ab4339c98179958b11b716b5887ecd3224666e2 (diff)
parentb6a6cefd5bd8e2e488b03024c18de3cd576d3046 (diff)
Merge
Diffstat (limited to 'examples')
-rw-r--r--examples/doom/Cargo.toml38
-rw-r--r--examples/rust/Cargo.toml71
2 files changed, 56 insertions, 53 deletions
diff --git a/examples/doom/Cargo.toml b/examples/doom/Cargo.toml
index 62710de..38e16c4 100644
--- a/examples/doom/Cargo.toml
+++ b/examples/doom/Cargo.toml
@@ -1,23 +1,23 @@
+[package]
+name = "tinywasm-doom"
+edition = "2024"
+publish = false
+
# treat this as an independent package
[workspace]
-[package]
-name="tinywasm-doom"
-publish=false
-edition="2024"
-
[dependencies]
-eyre="0.6"
-pretty_env_logger="0.5"
-tinywasm={features=[
- "std",
- "parser",
- "log",
- "archive",
- "canonicalize-nans",
- "debug",
- "parallel-parser",
-], path="../../crates/tinywasm"}
-log="0.4"
-softbuffer="0.4"
-winit="0.30"
+eyre = "0.6"
+log = "0.4"
+pretty_env_logger = "0.5"
+softbuffer = "0.4"
+tinywasm = { path = "../../crates/tinywasm", features = [
+ "archive",
+ "canonicalize-nans",
+ "debug",
+ "log",
+ "parallel-parser",
+ "parser",
+ "std",
+] }
+winit = "0.30"
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