Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

2.1 KB
Raw Blame
[package]
name = "cranelift-tools"
authors = ["The Cranelift Project Developers"]
version = "0.0.0"
description = "Binaries for testing the Cranelift libraries"
license = "Apache-2.0 WITH LLVM-exception"
documentation = "https://github.com/bytecodealliance/wasmtime/blob/main/cranelift/docs/index.md"
repository = "https://github.com/bytecodealliance/wasmtime"
publish = false
edition.workspace = true
rust-version.workspace = true

[lints]
workspace = true

[[bin]]
name = "clif-util"
path = "src/clif-util.rs"

[dependencies]
cranelift-codegen = { workspace = true, features = [
    "disas",
    "trace-log",
    "timing",
] }
cranelift-entity = { workspace = true }
cranelift-interpreter = { workspace = true }
cranelift-reader = { workspace = true }
cranelift-frontend = { workspace = true }
cranelift-native = { workspace = true }
cranelift-filetests = { workspace = true }
cranelift-module = { workspace = true }
cranelift-object = { workspace = true }
cranelift-jit = { workspace = true }
cranelift = { workspace = true }
filecheck = { workspace = true }
log = { workspace = true }
capstone = { workspace = true, optional = true }
target-lexicon = { workspace = true, features = ["std"] }
env_logger = { workspace = true }
rayon = { version = "1", optional = true }
thiserror = { workspace = true }
walkdir = { workspace = true }
anyhow = { workspace = true }
clap = { workspace = true, features = ['default'] }
similar = { workspace = true }
serde = { workspace = true }
rustc-hash = { workspace = true }
# Note that this just enables `trace-log` for `clif-util` and doesn't turn it on
# for all of Cranelift, which would be bad.
regalloc2 = { workspace = true, features = ["trace-log"] }
pulley-interpreter = { workspace = true, optional = true }

[features]
default = [
    "disas",
    "cranelift-codegen/all-arch",
    "cranelift-codegen/trace-log",
    "souper-harvest",
]
disas = ["capstone"]
souper-harvest = ["cranelift-codegen/souper-harvest", "rayon"]
all-arch = ["cranelift-codegen/all-arch"]
all-native-arch = ["cranelift-codegen/all-native-arch"]
pulley = ['cranelift-codegen/pulley', 'dep:pulley-interpreter']