sanitization 2.0.0

Dependency-free no_std secret memory sanitization with safe defaults and an explicit volatile wipe backend.
Documentation
# 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 = "2.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"
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"

[package.metadata.sanitization]
role = "core"
clearing-owner = "sanitization"
default-runtime-dependencies = 0

[package.metadata.docs.rs]
all-features = true

[features]
alloc = []
asm-compare = []
cache-flush = []
canary-check = ["memory-lock"]
default = ["asm-compare"]
derive = ["dep:sanitization-derive"]
guard-pages = []
hardware-secrets = []
memory-lock = []
multi-pass-clear = []
page-seal = ["guard-pages"]
profile-guarded-native = [
    "profile-hardened-native",
    "guard-pages",
]
profile-hardened-linux = [
    "profile-hardened-native",
    "require-fork-exclusion",
]
profile-hardened-native = [
    "memory-lock",
    "random-canary",
    "strict-canary-check",
    "strict-compare",
]
random-canary = ["canary-check"]
register-scrub = []
require-fork-exclusion = ["memory-lock"]
serde = ["dep:serde"]
split-secret = []
std = ["alloc"]
strict-canary-check = ["random-canary"]
strict-compare = ["asm-compare"]
subtle-interop = ["dep:subtle"]
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 = "ct_primitives"
path = "examples/ct_primitives.rs"

[[example]]
name = "high_assurance"
path = "examples/high_assurance.rs"

[[example]]
name = "high_assurance_policy"
path = "examples/high_assurance_policy.rs"

[[example]]
name = "macros"
path = "examples/macros.rs"

[[example]]
name = "storage_contracts"
path = "examples/storage_contracts.rs"

[[example]]
name = "wipe"
path = "examples/wipe.rs"

[[test]]
name = "derive"
path = "tests/derive.rs"

[dependencies.sanitization-derive]
version = "=2.0.0"
optional = true

[dependencies.serde]
version = "1.0.229"
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)",
]