[package]
edition = "2021"
rust-version = "1.90"
name = "sanitization"
version = "1.0.0"
build = false
include = [
"Cargo.toml",
"src/**/*.rs",
"tests/**/*.rs",
"examples/**/*.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Dependency-free no_std secret memory sanitization with safe defaults and an explicit volatile wipe backend."
homepage = "https://github.com/valkyoth/sanitization-rust-crate"
documentation = "https://docs.rs/sanitization"
readme = "README.md"
keywords = [
"zeroize",
"secrets",
"security",
"no-std",
"memory",
]
categories = [
"cryptography",
"no-std",
"memory-management",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/valkyoth/sanitization-rust-crate"
[package.metadata.docs.rs]
all-features = true
[features]
alloc = []
asm-compare = []
cache-flush = []
canary-check = ["memory-lock"]
default = []
derive = ["dep:sanitization-derive"]
guard-pages = []
memory-lock = []
multi-pass-clear = []
random-canary = ["canary-check"]
std = ["alloc"]
unsafe-wipe = []
[lib]
name = "sanitization"
path = "src/lib.rs"
[[example]]
name = "alloc"
path = "examples/alloc.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "high_assurance"
path = "examples/high_assurance.rs"
[[example]]
name = "macros"
path = "examples/macros.rs"
[[example]]
name = "unsafe_wipe"
path = "examples/unsafe_wipe.rs"
[[test]]
name = "derive"
path = "tests/derive.rs"
[dependencies.sanitization-derive]
version = "1.0.0"
optional = true
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(kani)",
"cfg(miri)",
]