Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/environ/Cargo.toml
1692 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
wasmparser = { workspace = true, features = ['validate', 'serde', 'features'] }
27
indexmap = { workspace = true, features = ["serde"] }
28
serde = { workspace = true }
29
serde_derive = { workspace = true }
30
log = { workspace = true }
31
gimli = { workspace = true }
32
object = { workspace = true }
33
rustc-demangle = { version = "0.1.16", optional = true }
34
target-lexicon = { workspace = true }
35
wasm-encoder = { workspace = true, optional = true }
36
wasmprinter = { workspace = true, optional = true }
37
wasmtime-component-util = { workspace = true, optional = true }
38
semver = { workspace = true, optional = true, features = ['serde'] }
39
smallvec = { workspace = true, features = ['serde'] }
40
41
[dev-dependencies]
42
clap = { workspace = true, features = ['default'] }
43
env_logger = { workspace = true }
44
wat = { workspace = true }
45
# Fix a test parsing ELF files internally where the bytes themselves reside in a
46
# `Vec<u8>` with no alignment requirements on it. By enabling the `unaligned`
47
# feature we don't require anything to be aligned so it doesn't matter the
48
# alignment of the bytes that we're reading.
49
object = { workspace = true, features = ['unaligned'] }
50
51
[[example]]
52
name = "factc"
53
required-features = ['component-model', 'compile']
54
55
[features]
56
component-model = [
57
"dep:wasmtime-component-util",
58
"dep:semver",
59
"wasmparser/component-model",
60
]
61
demangle = ['std', 'dep:rustc-demangle', 'dep:cpp_demangle']
62
gc = []
63
gc-drc = ["gc"]
64
gc-null = ["gc"]
65
compile = [
66
'gimli/write',
67
'object/write_core',
68
'std',
69
"dep:wasm-encoder",
70
"dep:wasmprinter",
71
]
72
stack-switching = []
73
threads = ['std']
74
wmemcheck = ['std']
75
std = [
76
'anyhow/std',
77
'object/std',
78
'wasmparser/std',
79
'indexmap/std',
80
]
81
82