# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.90"
name = "sanitization"
version = "1.1.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 = []
hardware-secrets = []
memory-lock = []
multi-pass-clear = []
random-canary = ["canary-check"]
register-scrub = []
serde = ["dep:serde"]
split-secret = []
std = ["alloc"]
subtle-interop = ["dep:subtle"]
unsafe-wipe = []
wasm-compat = []
zeroize-interop = ["dep:zeroize"]

[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.1.0"
optional = true

[dependencies.serde]
version = "1"
features = ["alloc"]
optional = true
default-features = false

[dependencies.subtle]
version = "2"
optional = true
default-features = false

[dependencies.zeroize]
version = "1"
optional = true
default-features = false

[dev-dependencies.serde_json]
version = "1"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(kani)",
    "cfg(miri)",
]
