ruby/zjit/Cargo.toml
Max Bernstein 556fda0864 Use expect-test for HIR tests
This makes it easier to update cascading test failures while still
making output reviewable in the PR.
2025-04-18 21:53:01 +09:00

35 lines
1.2 KiB
TOML

[package]
name = "zjit"
version = "0.0.1"
edition = "2024" # Rust 2021 edition to compile with
rust-version = "1.85.0" # Minimally supported rust version
publish = false # Don't publish to crates.io
[lib]
crate-type = ["staticlib"]
[profile.release]
# NOTE: --enable-zjit builds use `rustc` without going through Cargo. You
# might want to update the `rustc` invocation if you change this profile.
opt-level = 3
# The extra robustness that comes from checking for arithmetic overflow is
# worth the performance cost for the compiler.
overflow-checks = true
# Generate debug info
debug = true
# Use ThinLTO. Much smaller output for a small amount of build time increase.
lto = "thin"
[dependencies]
# No required dependencies to simplify build process. TODO: Link to yet to be
# written rationale. Optional For development and testing purposes
capstone = { version = "0.13.0", optional = true }
[dev-dependencies]
expect-test = "1.5.1"
# NOTE: Development builds select a set of these via configure.ac
# For debugging, `make V=1` shows exact cargo invocation.
[features]
# Support --yjit-dump-disasm and RubyVM::YJIT.disasm using libcapstone.
disasm = ["capstone"]