xref: /wasmtime-44.0.1/winch/codegen/Cargo.toml (revision fee9be21)
1[package]
2authors = ["The Winch Project Developers"]
3name = "winch-codegen"
4description = "Winch code generation library"
5license = "Apache-2.0 WITH LLVM-exception"
6repository = "https://github.com/bytecodealliance/wasmtime"
7version.workspace = true
8edition.workspace = true
9rust-version.workspace = true
10
11[lints]
12workspace = true
13
14[dependencies]
15wasmparser = { workspace = true }
16smallvec = { workspace = true }
17anyhow = { workspace = true }
18target-lexicon = { workspace = true, features = ["std"] }
19# The following two dependencies (cranelift-codegen, regalloc2) are temporary;
20# mostly to have access to `PReg`s and the calling convention.
21# In the next iteration we'll factor out the common bits so that they can be consumed
22# by Cranelift and Winch.
23cranelift-codegen = { workspace = true, features = ["unwind"] }
24regalloc2 = { workspace = true }
25cranelift-assembler-x64 = { workspace = true }
26gimli = { workspace = true }
27wasmtime-environ = { workspace = true }
28wasmtime-cranelift = { workspace = true }
29thiserror = { workspace = true }
30wasmtime-math = { workspace = true }
31
32[features]
33x64 = ["cranelift-codegen/x86"]
34arm64 = ["cranelift-codegen/arm64"]
35all-arch = [
36    "x64",
37    "arm64",
38]
39gc = ['wasmtime-environ/gc']
40gc-drc = ['wasmtime-environ/gc-drc']
41gc-null = ['wasmtime-environ/gc-null']
42stack-switching = ['wasmtime-environ/stack-switching']
43threads = ['wasmtime-environ/threads']
44wmemcheck = ['wasmtime-environ/wmemcheck']
45