[package] name = "externref" version.workspace = true edition.workspace = true rust-version.workspace = true authors.workspace = true license.workspace = true repository.workspace = true readme = "README.md" keywords = ["externref", "anyref", "wasm"] categories = ["wasm", "development-tools::ffi", "no-std"] description = "Low-cost reference type shims for WASM modules" [package.metadata.docs.rs] all-features = true # Set `docsrs` to enable unstable `doc(cfg(...))` attributes. rustdoc-args = ["--cfg", "docsrs"] [badges] maintenance = { status = "experimental" } [dependencies] externref-macro = { workspace = true, optional = true } # Processor dependencies anyhow = { workspace = true, optional = true } walrus = { workspace = true, optional = true } # Enables tracing during module processing tracing = { workspace = true, optional = true } [dev-dependencies] assert_matches.workspace = true doc-comment.workspace = true version-sync.workspace = true wat.workspace = true [features] default = ["macro"] # Enables `std`-specific features, like `Error` implementations std = [] # Re-exports the `externref` macro macro = ["externref-macro"] # Enables WASM module processing logic (the `processor` module) processor = ["std", "anyhow", "walrus"] [[test]] name = "processor" path = "tests/processor.rs" required-features = ["processor"]