Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/environ/Cargo.toml
3085 views
1
[package]
2
name = "wasmtime-environ"
3
version.workspace = true
4
authors.workspace = true
5
description = "Standalone environment support for WebAssembly code in Cranelift"
6
license = "Apache-2.0 WITH LLVM-exception"
7
repository = "https://github.com/bytecodealliance/wasmtime"
8
documentation = "https://docs.rs/wasmtime-environ/"
9
categories = ["wasm"]
10
keywords = ["webassembly", "wasm"]
11
edition.workspace = true
12
rust-version.workspace = true
13
14
[lints]
15
workspace = true
16
17
[package.metadata.docs.rs]
18
all-features = true
19
20
[dependencies]
21
anyhow = { workspace = true }
22
postcard = { workspace = true }
23
cpp_demangle = { version = "0.4.3", optional = true }
24
cranelift-entity = { workspace = true, features = ['enable-serde'] }
25
cranelift-bitset = { workspace = true, features = ['enable-serde'] }
26
hashbrown = { workspace = true, features = ["default-hasher"] }
27
wasmparser = { workspace = true, features = ['validate', 'serde', 'features'] }
28
indexmap = { workspace = true, features = ["serde"] }
29
serde = { workspace = true }
30
serde_derive = { workspace = true }
31
log = { workspace = true }
32
gimli = { workspace = true }
33
object = { workspace = true }
34
rustc-demangle = { version = "0.1.16", optional = true }
35
target-lexicon = { workspace = true }
36
wasm-encoder = { workspace = true, optional = true }
37
wasmprinter = { workspace = true, optional = true }
38
wasmtime-component-util = { workspace = true, optional = true }
39
wasmtime-core = { workspace = true }
40
semver = { workspace = true, optional = true, features = ['serde'] }
41
smallvec = { workspace = true, features = ['serde'] }
42
43
[dev-dependencies]
44
clap = { workspace = true, features = ['default'] }
45
env_logger = { workspace = true }
46
wat = { workspace = true }
47
# Fix a test parsing ELF files internally where the bytes themselves reside in a
48
# `Vec<u8>` with no alignment requirements on it. By enabling the `unaligned`
49
# feature we don't require anything to be aligned so it doesn't matter the
50
# alignment of the bytes that we're reading.
51
object = { workspace = true, features = ['unaligned'] }
52
arbtest = { workspace = true }
53
arbitrary = { workspace = true, features = ["derive"] }
54
55
[[example]]
56
name = "factc"
57
required-features = ['component-model', 'compile']
58
59
[features]
60
anyhow = ["wasmtime-core/anyhow"]
61
backtrace = ["std", "wasmtime-core/backtrace"]
62
component-model = [
63
"dep:wasmtime-component-util",
64
"dep:semver",
65
"wasmparser/component-model",
66
]
67
demangle = ['std', 'dep:rustc-demangle', 'dep:cpp_demangle']
68
gc = []
69
gc-drc = ["gc"]
70
gc-null = ["gc"]
71
compile = [
72
'gimli/write',
73
'object/write_core',
74
'std',
75
"dep:wasm-encoder",
76
"dep:wasmprinter",
77
]
78
stack-switching = []
79
threads = ['std']
80
wmemcheck = ['std']
81
std = [
82
'anyhow/std',
83
'object/std',
84
'wasmparser/std',
85
'indexmap/std',
86
'wasmtime-core/std',
87
]
88
89