summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry <mail@henrygressmann.de>2026-09-13 17:45:53 +0200
committerHenry <mail@henrygressmann.de>2026-09-13 17:45:53 +0200
commitded2780129ef8c58edfc1af51ea23be2524a15b1 (patch)
tree073aae40beb90e36c7274982f65a8a06d5b2ada3
parent0263bf19ecb2d58336c58a6146c46e6fe84f38f3 (diff)
chore: update deps, remove inline from dispatch handlers (closes #55)
Signed-off-by: Henry <mail@henrygressmann.de>
-rw-r--r--Cargo.lock71
-rw-r--r--Cargo.toml9
-rw-r--r--crates/cli/Cargo.toml1
-rw-r--r--crates/parser/Cargo.toml1
-rw-r--r--crates/tinywasm/Cargo.toml2
-rw-r--r--crates/tinywasm/src/interpreter/executor/dispatch_become.rs2
-rw-r--r--crates/types/Cargo.toml9
7 files changed, 44 insertions, 51 deletions
diff --git a/Cargo.lock b/Cargo.lock
index edc0bbf..a22eba9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -105,9 +105,9 @@ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
[[package]]
name = "bitflags"
-version = "2.13.1"
+version = "2.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
+checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
[[package]]
name = "bstr"
@@ -134,9 +134,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
[[package]]
name = "cc"
-version = "1.4.4"
+version = "1.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ad534f4357a5264cce5019c989cf66a4f0dc4e0d1b1d15f8aacec0ff7360273"
+checksum = "a3eb0f42d6c360dc3f8a821f6bf2fdea7f72bfd36b3076eb0e6d1e9e0752fff4"
dependencies = [
"find-msvc-tools",
"shlex",
@@ -215,7 +215,7 @@ dependencies = [
"heck",
"proc-macro2",
"quote",
- "syn 3.0.4",
+ "syn 3.0.5",
]
[[package]]
@@ -275,9 +275,9 @@ dependencies = [
[[package]]
name = "crossbeam-deque"
-version = "0.8.7"
+version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb"
+checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
dependencies = [
"crossbeam-epoch",
"crossbeam-utils",
@@ -285,18 +285,18 @@ dependencies = [
[[package]]
name = "crossbeam-epoch"
-version = "0.9.20"
+version = "0.9.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f"
+checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-utils"
-version = "0.8.22"
+version = "0.8.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
[[package]]
name = "crunchy"
@@ -365,9 +365,9 @@ checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
[[package]]
name = "find-msvc-tools"
-version = "0.1.11"
+version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d45db016d36b838f563236e9193d0ee6ce38f3f68b6c94e914b4929c96bbb890"
+checksum = "3e0f1c7c3a72c66fd80abe965175f7523475c0489a87d3ff9d6e8c87d87a9d2d"
[[package]]
name = "float-cmp"
@@ -414,9 +414,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
[[package]]
name = "hermit-abi"
-version = "0.5.2"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
+checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284"
[[package]]
name = "humantime"
@@ -445,9 +445,9 @@ dependencies = [
[[package]]
name = "indexmap"
-version = "2.14.1"
+version = "2.14.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "07aa2048142242915a31d35844fb311e0e53fcca590c3a0a40dcf1b841fa09eb"
+checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
dependencies = [
"equivalent",
"hashbrown",
@@ -578,9 +578,9 @@ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
[[package]]
name = "portable-atomic-util"
-version = "0.2.7"
+version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c2a106d1259c23fac8e543272398ae0e3c0b8d33c88ed73d0cc71b0f1d902618"
+checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715"
dependencies = [
"portable-atomic",
"serde",
@@ -766,7 +766,7 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.4",
+ "syn 3.0.5",
]
[[package]]
@@ -807,9 +807,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "3.0.4"
+version = "3.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6275cddf4610d1775e6d1fe9469b2e77d0f39fd98fb7450901b821e0c53649f"
+checksum = "12df2e0110f65b775f769bb17ef989067a1d931b2eb822bd4346631eeada89f9"
dependencies = [
"proc-macro2",
"quote",
@@ -861,7 +861,7 @@ checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.4",
+ "syn 3.0.5",
]
[[package]]
@@ -935,7 +935,6 @@ dependencies = [
name = "tinywasm-types"
version = "0.11.0-pre.0"
dependencies = [
- "log",
"portable-atomic-util",
"postcard",
"serde",
@@ -980,9 +979,9 @@ dependencies = [
[[package]]
name = "wasm-encoder"
-version = "0.258.0"
+version = "0.259.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e974fe6821a8cf64575d51ea2194e2c8f77e7b66e9afe7419ce8a97f9ee0d251"
+checksum = "b1d0246511d901aacf25d2dc9111f0054947de5e093fe662099e709ff7530dc3"
dependencies = [
"leb128fmt",
"wasmparser",
@@ -1000,9 +999,9 @@ dependencies = [
[[package]]
name = "wasmparser"
-version = "0.258.0"
+version = "0.259.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d9a61719f93a87b16d325921e251800c4833f8fab50fa21c7de73aed50086313"
+checksum = "0f7c12eac7bb587801590f6a67ff0bc84d0748513864b71108e4b311cc3df694"
dependencies = [
"bitflags",
"indexmap",
@@ -1011,9 +1010,9 @@ dependencies = [
[[package]]
name = "wast"
-version = "258.0.0"
+version = "259.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97f7defc7ecca8b19ac7f824598eadd0c53985ee00c74060d65051e9da5b58a1"
+checksum = "c69beba8d9da07af9a0971b559149a2ac4729895b55144de4fddbf5a02660648"
dependencies = [
"bumpalo",
"leb128fmt",
@@ -1024,9 +1023,9 @@ dependencies = [
[[package]]
name = "wat"
-version = "1.258.0"
+version = "1.259.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7555c008cca87f2ac58d9f83ccda7e7b44611093ce28eb28f052e7c78024b9bf"
+checksum = "c6eec44b0c80391b20fb7ad9ea440c72c5d382385bdf74444bb18321c425017e"
dependencies = [
"wast",
]
@@ -1079,18 +1078,18 @@ dependencies = [
[[package]]
name = "zerocopy"
-version = "0.8.56"
+version = "0.8.57"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "556764e583adb45a9f8d413c2a147fa7e8d821e48e12b14fd560b607998b75eb"
+checksum = "d35102a9f36d089ccae9e4c6802bc118be4487b80aaffc0ab4e0cf5ce92d2873"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
-version = "0.8.56"
+version = "0.8.57"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2ab42fc20575779bd240faa45f94a74256f755c0fa9e89f0ede20d91d0cdfc1"
+checksum = "146c01f5ab44258da43cf276c74a2763db2ff3969c9c652c3f2de07041d0b2bc"
dependencies = [
"proc-macro2",
"quote",
diff --git a/Cargo.toml b/Cargo.toml
index 1d709e2..a3fdd3b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,9 +31,9 @@ pretty_env_logger = "0.5"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
wasm-testsuite = { version = "0.7" }
-wasmparser = { version = "0.258", default-features = false }
-wast = "258"
-wat = "1.258"
+wasmparser = { version = "0.259", default-features = false }
+wast = "259"
+wat = "1.259"
criterion = { version = "0.8", default-features = false, features = ["cargo_bench_support", "rayon"] }
@@ -65,6 +65,9 @@ tinywasm = { path = "crates/tinywasm" }
tinywasm-parser.workspace = true
wat.workspace = true
+[lints.cargo]
+unused_dependencies = "allow" # false-positive on libm
+
[profile.bench]
opt-level = 3
debug = true
diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml
index 861d349..22f1bf8 100644
--- a/crates/cli/Cargo.toml
+++ b/crates/cli/Cargo.toml
@@ -5,7 +5,6 @@ edition.workspace = true
rust-version.workspace = true
description = "Minimal command-line interface for TinyWasm"
documentation = "https://docs.rs/tinywasm-cli"
-readme = "README.md"
repository.workspace = true
license.workspace = true
keywords = ["cli", "runtime", "tinywasm", "wasm", "webassembly"]
diff --git a/crates/parser/Cargo.toml b/crates/parser/Cargo.toml
index 7d781a4..f868beb 100644
--- a/crates/parser/Cargo.toml
+++ b/crates/parser/Cargo.toml
@@ -4,7 +4,6 @@ version.workspace = true
edition.workspace = true
rust-version.workspace = true
description = "Parser and lowering pipeline for TinyWasm"
-readme = "README.md"
repository.workspace = true
license.workspace = true
keywords.workspace = true
diff --git a/crates/tinywasm/Cargo.toml b/crates/tinywasm/Cargo.toml
index 3d78fca..15744a3 100644
--- a/crates/tinywasm/Cargo.toml
+++ b/crates/tinywasm/Cargo.toml
@@ -92,7 +92,7 @@ wat.workspace = true
default = ["full", "std"]
full = ["archive", "parallel-parser", "parser", "validate"]
-log = ["dep:log", "tinywasm-parser?/log", "tinywasm-types/log"]
+log = ["dep:log", "tinywasm-parser?/log"]
std = ["tinywasm-parser?/std", "tinywasm-types/std"]
# make stores, instances, references, and host callbacks movable across threads
diff --git a/crates/tinywasm/src/interpreter/executor/dispatch_become.rs b/crates/tinywasm/src/interpreter/executor/dispatch_become.rs
index 66cbb51..0dc8d5e 100644
--- a/crates/tinywasm/src/interpreter/executor/dispatch_become.rs
+++ b/crates/tinywasm/src/interpreter/executor/dispatch_become.rs
@@ -15,7 +15,6 @@ fn instruction_handler_mismatch() -> ! {
macro_rules! define_unbudgeted_tail_dispatch {
($executor:ident, $instr_ptr:ident, $dispatch_next:ident, $dispatch_flow:ident;
$($variant:ident $(($($arg:pat),*))? $({ $($field:ident),* })? => $body:expr),* $(,)?) => {
- #[inline(always)]
fn handler_for(instruction: &Instruction) -> UnbudgetedHandler {
use tinywasm_types::Instruction::*;
@@ -64,7 +63,6 @@ macro_rules! define_unbudgeted_tail_dispatch {
macro_rules! define_bounded_tail_dispatch {
($executor:ident, $instr_ptr:ident, $dispatch_next:ident, $dispatch_flow:ident;
$($variant:ident $(($($arg:pat),*))? $({ $($field:ident),* })? => $body:expr),* $(,)?) => {
- #[inline(always)]
fn handler_for(instruction: &Instruction) -> BoundedHandler {
use tinywasm_types::Instruction::*;
diff --git a/crates/types/Cargo.toml b/crates/types/Cargo.toml
index 091bb9f..4046896 100644
--- a/crates/types/Cargo.toml
+++ b/crates/types/Cargo.toml
@@ -4,20 +4,18 @@ version.workspace = true
edition.workspace = true
rust-version.workspace = true
description = "Shared runtime, module, and archive types for TinyWasm"
-readme = "README.md"
repository.workspace = true
license.workspace = true
keywords.workspace = true
categories.workspace = true
[dependencies]
-log = { workspace = true, optional = true }
-portable-atomic-util = { version = "0.2.7", default-features = false, features = ["alloc"], optional = true }
+portable-atomic-util = { version = "0.2.8", default-features = false, features = ["alloc"], optional = true }
postcard = { version = "1.1", default-features = false, features = ["alloc"], optional = true }
serde = { version = "1.0", default-features = false, features = ["alloc"], optional = true }
[features]
-default = ["archive", "debug", "log", "std"]
+default = ["archive", "debug", "std"]
# support serializing and deserializing twasm archives
archive = ["dep:postcard", "dep:serde", "portable-atomic-util?/serde", "serde/rc"]
@@ -25,9 +23,6 @@ archive = ["dep:postcard", "dep:serde", "portable-atomic-util?/serde", "serde/rc
# derive Debug for runtime and module types
debug = []
-# enable integration with the log crate
-log = ["dep:log"]
-
# enable standard library support
std = ["serde?/std"]