Skip to content

Commit ded2780

Browse files
chore: update deps, remove inline from dispatch handlers (closes #55)
Signed-off-by: Henry <mail@henrygressmann.de>
1 parent 0263bf1 commit ded2780

7 files changed

Lines changed: 44 additions & 51 deletions

File tree

‎Cargo.lock‎

Lines changed: 35 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ pretty_env_logger = "0.5"
3131
serde = { version = "1.0", features = ["derive"] }
3232
serde_json = { version = "1.0" }
3333
wasm-testsuite = { version = "0.7" }
34-
wasmparser = { version = "0.258", default-features = false }
35-
wast = "258"
36-
wat = "1.258"
34+
wasmparser = { version = "0.259", default-features = false }
35+
wast = "259"
36+
wat = "1.259"
3737

3838
criterion = { version = "0.8", default-features = false, features = ["cargo_bench_support", "rayon"] }
3939

@@ -65,6 +65,9 @@ tinywasm = { path = "crates/tinywasm" }
6565
tinywasm-parser.workspace = true
6666
wat.workspace = true
6767

68+
[lints.cargo]
69+
unused_dependencies = "allow" # false-positive on libm
70+
6871
[profile.bench]
6972
opt-level = 3
7073
debug = true

‎crates/cli/Cargo.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ edition.workspace = true
55
rust-version.workspace = true
66
description = "Minimal command-line interface for TinyWasm"
77
documentation = "https://docs.rs/tinywasm-cli"
8-
readme = "README.md"
98
repository.workspace = true
109
license.workspace = true
1110
keywords = ["cli", "runtime", "tinywasm", "wasm", "webassembly"]

‎crates/parser/Cargo.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version.workspace = true
44
edition.workspace = true
55
rust-version.workspace = true
66
description = "Parser and lowering pipeline for TinyWasm"
7-
readme = "README.md"
87
repository.workspace = true
98
license.workspace = true
109
keywords.workspace = true

‎crates/tinywasm/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ wat.workspace = true
9292
default = ["full", "std"]
9393
full = ["archive", "parallel-parser", "parser", "validate"]
9494

95-
log = ["dep:log", "tinywasm-parser?/log", "tinywasm-types/log"]
95+
log = ["dep:log", "tinywasm-parser?/log"]
9696
std = ["tinywasm-parser?/std", "tinywasm-types/std"]
9797

9898
# make stores, instances, references, and host callbacks movable across threads

‎crates/tinywasm/src/interpreter/executor/dispatch_become.rs‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ fn instruction_handler_mismatch() -> ! {
1515
macro_rules! define_unbudgeted_tail_dispatch {
1616
($executor:ident, $instr_ptr:ident, $dispatch_next:ident, $dispatch_flow:ident;
1717
$($variant:ident $(($($arg:pat),*))? $({ $($field:ident),* })? => $body:expr),* $(,)?) => {
18-
#[inline(always)]
1918
fn handler_for(instruction: &Instruction) -> UnbudgetedHandler {
2019
use tinywasm_types::Instruction::*;
2120

@@ -64,7 +63,6 @@ macro_rules! define_unbudgeted_tail_dispatch {
6463
macro_rules! define_bounded_tail_dispatch {
6564
($executor:ident, $instr_ptr:ident, $dispatch_next:ident, $dispatch_flow:ident;
6665
$($variant:ident $(($($arg:pat),*))? $({ $($field:ident),* })? => $body:expr),* $(,)?) => {
67-
#[inline(always)]
6866
fn handler_for(instruction: &Instruction) -> BoundedHandler {
6967
use tinywasm_types::Instruction::*;
7068

‎crates/types/Cargo.toml‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,25 @@ version.workspace = true
44
edition.workspace = true
55
rust-version.workspace = true
66
description = "Shared runtime, module, and archive types for TinyWasm"
7-
readme = "README.md"
87
repository.workspace = true
98
license.workspace = true
109
keywords.workspace = true
1110
categories.workspace = true
1211

1312
[dependencies]
14-
log = { workspace = true, optional = true }
15-
portable-atomic-util = { version = "0.2.7", default-features = false, features = ["alloc"], optional = true }
13+
portable-atomic-util = { version = "0.2.8", default-features = false, features = ["alloc"], optional = true }
1614
postcard = { version = "1.1", default-features = false, features = ["alloc"], optional = true }
1715
serde = { version = "1.0", default-features = false, features = ["alloc"], optional = true }
1816

1917
[features]
20-
default = ["archive", "debug", "log", "std"]
18+
default = ["archive", "debug", "std"]
2119

2220
# support serializing and deserializing twasm archives
2321
archive = ["dep:postcard", "dep:serde", "portable-atomic-util?/serde", "serde/rc"]
2422

2523
# derive Debug for runtime and module types
2624
debug = []
2725

28-
# enable integration with the log crate
29-
log = ["dep:log"]
30-
3126
# enable standard library support
3227
std = ["serde?/std"]
3328

0 commit comments

Comments
 (0)