[package]
edition = "2024"
rust-version = "1.93"
name = "sjlj2"
version = "0.5.0"
build = "build.rs"
exclude = [
"flake.nix",
"flake.lock",
".github",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safer, cheaper and more ergonomic setjmp/longjmp in Rust"
documentation = "https://docs.rs/sjlj2"
readme = "README.md"
keywords = [
"setjmp",
"longjmp",
]
categories = [
"embedded",
"no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/oxalica/sjlj2"
[features]
default = []
unwind = []
[lib]
name = "sjlj2"
path = "src/lib.rs"
[[example]]
name = "codegen"
crate-type = ["staticlib"]
path = "examples/codegen.rs"
[[test]]
name = "dwarf"
path = "tests/dwarf.rs"
[[test]]
name = "smoke"
path = "tests/smoke.rs"
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false
[dependencies]
[dev-dependencies.criterion]
version = "0.8"
[target.'cfg(target_os = "linux")'.dev-dependencies.pprof]
version = "0.15.0"
default-features = false
[lints.clippy.pedantic]
level = "warn"
priority = -1
[profile.release]
debug = "line-tables-only"