xref: /wasmtime-44.0.1/winch/codegen/Cargo.toml (revision 2b9da02f)
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 }
25gimli = { workspace = true }
26wasmtime-environ = { workspace = true }
27wasmtime-cranelift = { workspace = true }
28thiserror = { workspace = true }
29
30[features]
31x64 = ["cranelift-codegen/x86"]
32arm64 = ["cranelift-codegen/arm64"]
33all-arch = [
34    "x64",
35    "arm64",
36]
37gc = ['wasmtime-environ/gc']
38gc-drc = ['wasmtime-environ/gc-drc']
39gc-null = ['wasmtime-environ/gc-null']
40threads = ['wasmtime-environ/threads']
41wmemcheck = ['wasmtime-environ/wmemcheck']
42