Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

3.1 KB
Raw Blame
[package]
name = "wasmtime-environ"
version.workspace = true
authors.workspace = true
description = "Standalone environment support for WebAssembly code in Cranelift"
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/bytecodealliance/wasmtime"
documentation = "https://docs.rs/wasmtime-environ/"
categories = ["wasm"]
keywords = ["webassembly", "wasm"]
edition.workspace = true
rust-version.workspace = true

[lints]
workspace = true

[package.metadata.docs.rs]
all-features = true

[dependencies]
anyhow = { workspace = true }
postcard = { workspace = true, optional = true }
cpp_demangle = { version = "0.5.1", default-features = false, features = ['alloc'], optional = true }
cranelift-entity = { workspace = true, features = ['enable-serde'] }
cranelift-bitset = { workspace = true, features = ['enable-serde'] }
cranelift-bforest = { workspace = true }
hashbrown = { workspace = true, features = ["default-hasher"] }
wasmparser = { workspace = true, features = ['validate', 'serde', 'features'] }
indexmap = { workspace = true, features = ["serde"] }
serde = { workspace = true }
serde_derive = { workspace = true }
log = { workspace = true }
gimli = { workspace = true, optional = true }
object = { workspace = true }
rustc-demangle = { version = "0.1.16", default-features = false, optional = true }
target-lexicon = { workspace = true }
wasm-encoder = { workspace = true, optional = true }
wasmprinter = { workspace = true, optional = true }
wasmtime-component-util = { workspace = true, optional = true }
wasmtime-core = { workspace = true, features = ['serde'] }
semver = { workspace = true, optional = true, features = ['serde'] }
smallvec = { workspace = true, features = ['serde'] }
sha2 = { workspace = true, optional = true }

[dev-dependencies]
clap = { workspace = true, features = ['default'] }
env_logger = { workspace = true }
wat = { workspace = true }
# Fix a test parsing ELF files internally where the bytes themselves reside in a
# `Vec<u8>` with no alignment requirements on it. By enabling the `unaligned`
# feature we don't require anything to be aligned so it doesn't matter the
# alignment of the bytes that we're reading.
object = { workspace = true, features = ['unaligned'] }
arbtest = { workspace = true }
arbitrary = { workspace = true, features = ["derive"] }
mutatis = { workspace = true }
postcard = { workspace = true }

[[example]]
name = "factc"
required-features = ['component-model', 'compile']

[[example]]
name = "btrees"
required-features = ["std"]

[features]
anyhow = ["wasmtime-core/anyhow"]
backtrace = ["std", "wasmtime-core/backtrace"]
component-model = [
  "dep:wasmtime-component-util",
  "dep:semver",
  "wasmparser/component-model",
]
demangle = ['dep:rustc-demangle', 'dep:cpp_demangle']
gc = []
gc-drc = ["gc"]
gc-null = ["gc"]
gc-copying = ["gc"]
compile = [
  'dep:gimli',
  'gimli/write',
  'dep:postcard',
  'object/write_core',
  'std',
  "dep:wasm-encoder",
  "dep:wasmprinter",
]
stack-switching = []
threads = ['std']
wmemcheck = ['std']
std = [
  'anyhow/std',
  'object/std',
  'wasmparser/std',
  'indexmap/std',
  'wasmtime-core/std',
  'cpp_demangle?/std',
  'rustc-demangle?/std',
]
rr = [
  "component-model",
  "dep:sha2",
]