[package]
edition = "2024"
rust-version = "1.88.0"
name = "sensitive-fmt"
version = "0.2.0"
authors = ["C J Silverio <ceejceej@gmail.com>"]
build = false
exclude = [
"docs/",
"tests/no_std_build/target/",
"*.rlib",
"rust_out",
"test_marker_warn",
".github/",
".justfile",
".rustfmt.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive Debug and Display while honoring #[sensitive(redact | truncate = N | skip)] field attributes."
homepage = "https://github.com/ceejbot/sensitive-fmt"
readme = "README.md"
keywords = [
"derive",
"debug",
"display",
"redact",
"phi",
]
categories = ["development-tools::procedural-macro-helpers"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ceejbot/sensitive-fmt"
[lib]
name = "sensitive_fmt"
path = "src/lib.rs"
proc-macro = true
[[test]]
name = "basic"
path = "tests/basic.rs"
[[test]]
name = "compile_fail"
path = "tests/compile_fail.rs"
[[test]]
name = "display"
path = "tests/display.rs"
[[test]]
name = "enums"
path = "tests/enums.rs"
[[test]]
name = "generics"
path = "tests/generics.rs"
[[test]]
name = "redact"
path = "tests/redact.rs"
[[test]]
name = "skip"
path = "tests/skip.rs"
[[test]]
name = "truncate"
path = "tests/truncate.rs"
[dependencies.proc-macro2]
version = "1"
[dependencies.quote]
version = "1"
[dependencies.syn]
version = "2"
features = ["full"]
[dev-dependencies.trybuild]
version = "1"