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 } 17target-lexicon = { workspace = true, features = ["std"] } 18# The following two dependencies (cranelift-codegen, regalloc2) are temporary; 19# mostly to have access to `PReg`s and the calling convention. 20# In the next iteration we'll factor out the common bits so that they can be consumed 21# by Cranelift and Winch. 22cranelift-codegen = { workspace = true, features = ["unwind"] } 23regalloc2 = { workspace = true } 24cranelift-assembler-x64 = { workspace = true } 25gimli = { workspace = true } 26wasmtime-environ = { workspace = true } 27wasmtime-cranelift = { workspace = true } 28thiserror = { workspace = true } 29wasmtime-core = { workspace = true } 30 31[features] 32x64 = ["cranelift-codegen/x86"] 33arm64 = ["cranelift-codegen/arm64"] 34all-arch = [ 35 "x64", 36 "arm64", 37] 38gc = ['wasmtime-environ/gc'] 39gc-drc = ['wasmtime-environ/gc-drc'] 40gc-null = ['wasmtime-environ/gc-null'] 41stack-switching = ['wasmtime-environ/stack-switching'] 42threads = ['wasmtime-environ/threads'] 43wmemcheck = ['wasmtime-environ/wmemcheck'] 44