# SPDX-License-Identifier: MIT [package] # The repository is sh2-rust; the crate takes the reference's name without its # `_python` suffix (the family convention for Rust ports). name = "sh2" version = "0.1.0" edition = "2021" rust-version = "1.85" description = "A Rust Hitachi SH7604 (SH-2) core transcribed from, and proven equivalent to, sh2-python" license = "MIT" publish = false [lib] name = "sh2" crate-type = ["rlib", "cdylib"] # No doctests: the examples live in README.md and the rungs. doctest = false [features] # The lockstep, corpus and replay tools (src/bin) need JSON and gzip; the core does not. default = ["tools"] tools = ["dep:serde_json", "dep:flate2"] # The sampling profiler (src/bin/sh2-profile.rs, scripts/profile.py). profile = ["dep:libc"] [dependencies] serde_json = { version = "1", optional = true } flate2 = { version = "1", optional = true } libc = { version = "0.2", optional = true } [[bin]] name = "sh2-trace" required-features = ["tools"] [[bin]] name = "sh2-corpus" required-features = ["tools"] [[bin]] name = "sh2-replay" required-features = ["tools"] [[bin]] name = "sh2-bench" [[bin]] name = "sh2-profile" required-features = ["profile"] [profile.release] debug = 1