| # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| # |
| # When uploading crates to the registry Cargo will automatically |
| # "normalize" Cargo.toml files for maximal compatibility |
| # with all versions of Cargo and also rewrite `path` dependencies |
| # to registry (e.g., crates.io) dependencies. |
| # |
| # If you are reading this file be aware that the original Cargo.toml |
| # will likely look very different (and much more reasonable). |
| # See Cargo.toml.orig for the original contents. |
| |
| [package] |
| edition = "2021" |
| rust-version = "1.76.0" |
| name = "wit-component" |
| version = "0.219.0" |
| authors = ["Peter Huene <[email protected]>"] |
| build = false |
| autobins = false |
| autoexamples = false |
| autotests = false |
| autobenches = false |
| description = """ |
| Tooling for working with `*.wit` and component files together. |
| """ |
| homepage = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-component" |
| documentation = "https://docs.rs/wit-component" |
| readme = "README.md" |
| license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT" |
| repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-component" |
| |
| [package.metadata.docs.rs] |
| all-features = true |
| |
| [lib] |
| name = "wit_component" |
| path = "src/lib.rs" |
| |
| [[test]] |
| name = "components" |
| path = "tests/components.rs" |
| harness = false |
| |
| [[test]] |
| name = "interfaces" |
| path = "tests/interfaces.rs" |
| harness = false |
| |
| [[test]] |
| name = "linking" |
| path = "tests/linking.rs" |
| |
| [[test]] |
| name = "merge" |
| path = "tests/merge.rs" |
| |
| [[test]] |
| name = "targets" |
| path = "tests/targets.rs" |
| |
| [[test]] |
| name = "wit" |
| path = "tests/wit.rs" |
| |
| [dependencies.anyhow] |
| version = "1.0.58" |
| |
| [dependencies.bitflags] |
| version = "2.3.3" |
| |
| [dependencies.indexmap] |
| version = "2.0.0" |
| default-features = false |
| |
| [dependencies.log] |
| version = "0.4.17" |
| |
| [dependencies.serde] |
| version = "1.0.166" |
| features = ["alloc"] |
| default-features = false |
| |
| [dependencies.serde_derive] |
| version = "1.0.166" |
| |
| [dependencies.serde_json] |
| version = "1" |
| |
| [dependencies.wasm-encoder] |
| version = "0.219.0" |
| features = ["wasmparser"] |
| default-features = false |
| |
| [dependencies.wasm-metadata] |
| version = "0.219.0" |
| |
| [dependencies.wasmparser] |
| version = "0.219.0" |
| features = [ |
| "std", |
| "component-model", |
| ] |
| default-features = false |
| |
| [dependencies.wast] |
| version = "219.0.0" |
| optional = true |
| default-features = false |
| |
| [dependencies.wat] |
| version = "1.219.0" |
| optional = true |
| default-features = false |
| |
| [dependencies.wit-parser] |
| version = "0.219.0" |
| features = [ |
| "decoding", |
| "serde", |
| ] |
| |
| [dev-dependencies.env_logger] |
| version = "0.11" |
| |
| [dev-dependencies.glob] |
| version = "0.3.0" |
| |
| [dev-dependencies.libtest-mimic] |
| version = "0.7.0" |
| |
| [dev-dependencies.pretty_assertions] |
| version = "1.3.0" |
| |
| [dev-dependencies.wasmprinter] |
| version = "0.219.0" |
| features = ["component-model"] |
| default-features = false |
| |
| [dev-dependencies.wat] |
| version = "1.219.0" |
| features = ["component-model"] |
| default-features = false |
| |
| [features] |
| dummy-module = ["dep:wat"] |
| semver-check = ["dummy-module"] |
| wat = [ |
| "dep:wast", |
| "dep:wat", |
| ] |
| |
| [target.'cfg(not(target_family = "wasm"))'.dev-dependencies.wasmtime] |
| version = "25.0.0" |
| features = [ |
| "cranelift", |
| "component-model", |
| "runtime", |
| "gc", |
| ] |
| default-features = false |
| |
| [lints.clippy] |
| clone_on_copy = "warn" |
| manual_strip = "warn" |
| map_clone = "warn" |
| unnecessary_to_owned = "warn" |
| |
| [lints.clippy.all] |
| level = "allow" |
| priority = -1 |
| |
| [lints.rust] |
| unsafe_code = "deny" |