* Remove usage of `CompilationStrategy` from `Config` This commit removes the public API usage of the internal `CompilationStrategy` enumeration from the `Config` type in the `wasmtime` crate. To do this the `enum` was copied locally into the crate and renamed `Strategy`. The high-level description of this change is: * The `Config::strategy` method now takes a locally-defined `Strategy` enumeration instead of an internal type. * The contents of `Strategy` are always the same, not relying on Cargo features to indicate which variants are present. This avoids unnecessary downstream `#[cfg]`. * A `lightbeam` feature was added to the `wasmtime` crate itself to lightbeam compilation support. * The `Config::strategy` method is now fallible. It returns a runtime error if support for the selected strategy wasn't compiled in. * The `Strategy` enum is listed as `#[non_exhaustive]` so we can safely add variants over time to it. This reduces the public crate dependencies of the `wasmtime` crate itself, removing the need to reach into internal crates even more! cc #708 * Fix fuzz targets * Update nightly used to build releases * Run rustfmt
54 lines
1.6 KiB
TOML
54 lines
1.6 KiB
TOML
[package]
|
|
name = "wasmtime-environ"
|
|
version = "0.7.0"
|
|
authors = ["The Wasmtime Project Developers"]
|
|
description = "Standalone environment support for WebAsssembly 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"]
|
|
readme = "README.md"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
cranelift-codegen = { version = "0.52.0", features = ["enable-serde"] }
|
|
cranelift-entity = { version = "0.52.0", features = ["enable-serde"] }
|
|
cranelift-wasm = { version = "0.52.0", features = ["enable-serde"] }
|
|
wasmparser = "0.45.0"
|
|
lightbeam = { path = "../lightbeam", optional = true }
|
|
indexmap = "1.0.2"
|
|
rayon = "1.2.1"
|
|
thiserror = "1.0.4"
|
|
directories = "2.0.1"
|
|
sha2 = "0.8.0"
|
|
base64 = "0.11.0"
|
|
serde = { version = "1.0.94", features = ["derive"] }
|
|
bincode = "1.1.4"
|
|
lazy_static = "1.3.0"
|
|
spin = "0.5.0"
|
|
log = { version = "0.4.8", default-features = false }
|
|
zstd = "0.5"
|
|
toml = "0.5.5"
|
|
file-per-thread-logger = "0.1.1"
|
|
more-asserts = "0.2.1"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
winapi = "0.3.7"
|
|
|
|
[target.'cfg(not(target_os = "windows"))'.dependencies]
|
|
libc = "0.2.60"
|
|
errno = "0.2.4"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
target-lexicon = { version = "0.9.0", default-features = false }
|
|
pretty_env_logger = "0.3.0"
|
|
rand = { version = "0.7.0", default-features = false, features = ["small_rng"] }
|
|
cranelift-codegen = { version = "0.52.0", features = ["enable-serde", "all-arch"] }
|
|
filetime = "0.2.7"
|
|
|
|
[badges]
|
|
maintenance = { status = "actively-developed" }
|