diff options
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/cli/Cargo.toml | 83 | ||||
| -rw-r--r-- | crates/parser/Cargo.toml | 35 | ||||
| -rw-r--r-- | crates/tinywasm/Cargo.toml | 253 | ||||
| -rw-r--r-- | crates/types/Cargo.toml | 37 |
4 files changed, 210 insertions, 198 deletions
diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 1aed0cc..7dbd4d2 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -1,53 +1,52 @@ [package] -name="tinywasm-cli" -version.workspace=true -description="Minimal command-line interface for TinyWasm" -edition.workspace=true -license.workspace=true -authors.workspace=true -repository.workspace=true -documentation="https://docs.rs/tinywasm-cli" -rust-version.workspace=true -keywords=["tinywasm", "wasm", "webassembly", "cli", "runtime"] -categories=["command-line-utilities", "wasm"] -readme="README.md" +name = "tinywasm-cli" +version.workspace = true +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"] +categories = ["command-line-utilities", "wasm"] [lib] -name="tinywasm_cli" -path="src/lib.rs" +name = "tinywasm_cli" +path = "src/lib.rs" [[bin]] -name="tinywasm" -path="src/bin.rs" +name = "tinywasm" +path = "src/bin.rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -clap={version="4.6", features=["derive"]} -clap_complete="4.6" -eyre.workspace=true -log.workspace=true -pretty_env_logger.workspace=true -tinywasm={workspace=true, features=[ - "std", - "parser", - "log", - "archive", - "canonicalize-nans", - "debug", - "parallel-parser", -]} -wat={workspace=true, optional=true} -wast={workspace=true, optional=true} -owo-colors={workspace=true} -anstream={version="1.0"} - -[features] -default=["wat", "wast"] -wat=["dep:wat"] -wast=["dep:wast"] +anstream = { version = "1.0" } +clap = { version = "4.6", features = ["derive"] } +clap_complete = "4.6" +eyre.workspace = true +log.workspace = true +owo-colors = { workspace = true } +pretty_env_logger.workspace = true +tinywasm = { workspace = true, features = [ + "archive", + "canonicalize-nans", + "debug", + "log", + "parallel-parser", + "parser", + "std", +] } +wast = { workspace = true, optional = true } +wat = { workspace = true, optional = true } [dev-dependencies] -assert_cmd="2.2" -predicates="3.1" -tempfile="3.27" +assert_cmd = "2.2" +predicates = "3.1" +tempfile = "3.27" + +[features] +default = ["wast", "wat"] +wast = ["dep:wast"] +wat = ["dep:wat"] diff --git a/crates/parser/Cargo.toml b/crates/parser/Cargo.toml index 417253d..3e71403 100644 --- a/crates/parser/Cargo.toml +++ b/crates/parser/Cargo.toml @@ -1,23 +1,22 @@ [package] -name="tinywasm-parser" -version.workspace=true -description="Parser and lowering pipeline for TinyWasm" -edition.workspace=true -license.workspace=true -authors.workspace=true -repository.workspace=true -rust-version.workspace=true -keywords.workspace=true -categories.workspace=true -readme="README.md" +name = "tinywasm-parser" +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 +categories.workspace = true [dependencies] -wasmparser={workspace=true, features=["validate", "features", "simd"]} -log={workspace=true, optional=true} -tinywasm-types={workspace=true} +log = { workspace = true, optional = true } +tinywasm-types = { workspace = true } +wasmparser = { workspace = true, features = ["features", "simd", "validate"] } [features] -default=["std", "log", "parallel"] -log=["dep:log"] -std=["tinywasm-types/std", "wasmparser/std"] -parallel=["std"] +default = ["log", "parallel", "std"] +log = ["dep:log"] +parallel = ["std"] +std = ["tinywasm-types/std", "wasmparser/std"] diff --git a/crates/tinywasm/Cargo.toml b/crates/tinywasm/Cargo.toml index fd33d1a..aecebeb 100644 --- a/crates/tinywasm/Cargo.toml +++ b/crates/tinywasm/Cargo.toml @@ -1,175 +1,190 @@ [package] -name="tinywasm" -version.workspace=true -description="A tiny WebAssembly interpreter" -edition.workspace=true -license.workspace=true -authors.workspace=true -repository.workspace=true -rust-version.workspace=true -keywords.workspace=true -categories.workspace=true -readme="../../README.md" - -[lib] -name="tinywasm" -path="src/lib.rs" +name = "tinywasm" +version.workspace = true +edition.workspace = true +rust-version.workspace = true +description = "A tiny WebAssembly interpreter" +readme = "../../README.md" +repository.workspace = true +license.workspace = true +keywords.workspace = true +categories.workspace = true [package.metadata.docs.rs] -features=["std", "parser", "archive", "log", "canonicalize-nans", "debug", "guest-debug"] -rustdoc-args=["--cfg", "docsrs"] - -[dependencies] -log={workspace=true, optional=true} -tinywasm-parser={workspace=true, optional=true} -tinywasm-types={workspace=true} -libm={version="0.2", default-features=false} - -[dev-dependencies] -wasm-testsuite.workspace=true -tinywasm-cli={path="../cli", features=["wast", "wat"]} -wat.workspace=true -eyre.workspace=true -criterion.workspace=true -owo-colors.workspace=true -serde_json.workspace=true -serde.workspace=true +features = [ + "std", + "parser", + "archive", + "log", + "canonicalize-nans", + "debug", + "guest-debug" +] +rustdoc-args = ["--cfg", "docsrs"] -[features] -default=["std", "parser", "log", "archive", "canonicalize-nans", "debug", "parallel-parser"] - -log=["dep:log", "tinywasm-parser?/log", "tinywasm-types/log"] -std=["tinywasm-parser?/std", "tinywasm-types/std"] - -# support for parsing WebAssembly -parser=["dep:tinywasm-parser"] +[lib] +name = "tinywasm" +path = "src/lib.rs" -# parallelize function parsing/validation across threads (requires std) -parallel-parser=["parser", "tinywasm-parser?/parallel"] +[[test]] +harness = false +name = "test-wasm-1" -# support for "archiving" tinywasm bytecode -archive=["tinywasm-types/archive"] +[[test]] +harness = false +name = "test-wasm-3" +test = false -# canonicalize all NaN values to a single representation -canonicalize-nans=[] +[[test]] +harness = false +name = "test-wasm-2" -# derive Debug for runtime/types structs -debug=["tinywasm-types/debug"] +[[test]] +harness = false +name = "test-wasm-latest" +test = false -# expose module-internal by-index inspection APIs for non-exported entities (for testing and debugging) -guest-debug=[] +[[test]] +harness = false +name = "test-wasm-multi-memory" -# enable x86-specific SIMD intrinsics in Value128 (uses unsafe code) -# note: for x86 backend selection, compile with x86-64-v3 target features -# (for example: `RUSTFLAGS="-C target-cpu=x86-64-v3"`) -simd-x86=[] +[[test]] +harness = false +name = "test-wasm-threads" +test = false [[test]] -name="test-wasm-1" -harness=false +harness = false +name = "test-wasm-annotations" [[test]] -name="test-wasm-2" -harness=false +harness = false +name = "test-wast" +test = false [[test]] -name="test-wasm-multi-memory" -harness=false +harness = false +name = "test-wasm-custom-page-sizes" [[test]] -name="test-wasm-annotations" -harness=false +harness = false +name = "test-wasm-function-references" +test = false [[test]] -name="test-wasm-custom-page-sizes" -harness=false +harness = false +name = "test-wasm-custom" [[test]] -name="test-wasm-custom" -harness=false +harness = false +name = "test-wasm-gc" +test = false [[test]] -name="test-wasm-tail-call" -harness=false +harness = false +name = "test-wasm-tail-call" [[test]] -name="test-wasm-memory64" -harness=false +harness = false +name = "test-wasm-memory64" [[test]] -name="test-wasm-extended-const" -harness=false +harness = false +name = "test-wasm-extended-const" [[test]] -name="test-wasm-relaxed-simd" -harness=false +harness = false +name = "test-wasm-relaxed-simd" [[test]] -name="test-wasm-simd" -harness=false +harness = false +name = "test-wasm-simd" [[test]] -name="test-wasm-wide-arithmetic" -harness=false +harness = false +name = "test-wasm-wide-arithmetic" [[test]] -name="test-wasm-sign-extension-op" -harness=false +harness = false +name = "test-wasm-sign-extension-op" [[test]] -name="test-wasm-nontrapping-float-to-int-conversions" -harness=false +harness = false +name = "test-wasm-nontrapping-float-to-int-conversions" [[test]] -name="test-wasm-reference-types" -harness=false +harness = false +name = "test-wasm-reference-types" [[bench]] -name="argon2id" -harness=false +harness = false +name = "argon2id" [[bench]] -name="fibonacci" -harness=false +harness = false +name = "fibonacci" [[bench]] -name="tinywasm" -harness=false +harness = false +name = "tinywasm" [[bench]] -name="tinywasm_modes" -harness=false +harness = false +name = "tinywasm_modes" [[bench]] -name="memory_backends" -harness=false +harness = false +name = "memory_backends" -[[test]] -name="test-wasm-3" -harness=false -test=false +[dependencies] +libm = { version = "0.2", default-features = false } +log = { workspace = true, optional = true } +tinywasm-parser = { workspace = true, optional = true } +tinywasm-types = { workspace = true } -[[test]] -name="test-wasm-latest" -harness=false -test=false +[dev-dependencies] +criterion.workspace = true +eyre.workspace = true +owo-colors.workspace = true +serde.workspace = true +serde_json.workspace = true +tinywasm-cli = { path = "../cli", features = ["wast", "wat"] } +wasm-testsuite.workspace = true +wat.workspace = true -[[test]] -name="test-wasm-threads" -harness=false -test=false +[features] +default = [ + "archive", + "canonicalize-nans", + "debug", + "log", + "parallel-parser", + "parser", + "std" +] -[[test]] -name="test-wast" -harness=false -test=false +log = ["dep:log", "tinywasm-parser?/log", "tinywasm-types/log"] +std = ["tinywasm-parser?/std", "tinywasm-types/std"] -[[test]] -name="test-wasm-function-references" -harness=false -test=false +# support for parsing WebAssembly +parser = ["dep:tinywasm-parser"] -[[test]] -name="test-wasm-gc" -harness=false -test=false +# parallelize function parsing/validation across threads (requires std) +parallel-parser = ["parser", "tinywasm-parser?/parallel"] + +# support for "archiving" tinywasm bytecode +archive = ["tinywasm-types/archive"] + +# canonicalize all NaN values to a single representation +canonicalize-nans = [] + +# derive Debug for runtime/types structs +debug = ["tinywasm-types/debug"] + +# expose module-internal by-index inspection APIs for non-exported entities (for testing and debugging) +guest-debug = [] + +# enable x86-specific SIMD intrinsics in Value128 (uses unsafe code) +# note: for x86 backend selection, compile with x86-64-v3 target features +# (for example: `RUSTFLAGS="-C target-cpu=x86-64-v3"`) +simd-x86 = [] diff --git a/crates/types/Cargo.toml b/crates/types/Cargo.toml index 9f2dc8c..3587143 100644 --- a/crates/types/Cargo.toml +++ b/crates/types/Cargo.toml @@ -1,25 +1,24 @@ [package] -name="tinywasm-types" -version.workspace=true -description="Shared runtime, module, and archive types for TinyWasm" -edition.workspace=true -license.workspace=true -authors.workspace=true -repository.workspace=true -rust-version.workspace=true -keywords.workspace=true -categories.workspace=true -readme="README.md" +name = "tinywasm-types" +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} -postcard={version="1.1", optional=true, default-features=false, features=["alloc"]} -serde={version="1.0", optional=true, default-features=false, features=["alloc", "rc"]} +log = { workspace = true, optional = true } +postcard = { version = "1.1", default-features = false, features = ["alloc"], optional = true } +serde = { version = "1.0", default-features = false, features = ["alloc", "rc"], optional = true } [features] -default=["std", "log", "archive", "debug"] +default = ["archive", "debug", "log", "std"] -std=["serde?/std"] -archive=["dep:postcard", "dep:serde"] -log=["dep:log"] -debug=[] +archive = ["dep:postcard", "dep:serde"] +debug = [] +log = ["dep:log"] +std = ["serde?/std"] |
