qubit-redact 0.3.0

Rule-driven redaction for fields, diagnostics, HTTP data, and Rust domain objects
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 = "2024"
rust-version = "1.94"
name = "qubit-redact"
version = "0.3.0"
authors = ["Haixing Hu <starfish.hu@gmail.com>"]
build = false
include = [
    "/Cargo.toml",
    "/LICENSE",
    "/README.md",
    "/README.zh_CN.md",
    "/benches/**",
    "/doc/**",
    "/src/**",
    "/tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rule-driven redaction for fields, diagnostics, HTTP data, and Rust domain objects"
homepage = "https://github.com/qubit-ltd/rs-redact"
documentation = "https://docs.rs/qubit-redact"
readme = "README.md"
keywords = [
    "redact",
    "mask",
    "privacy",
    "logging",
    "qubit",
]
categories = [
    "development-tools",
    "value-formatting",
]
license = "Apache-2.0"
repository = "https://github.com/qubit-ltd/rs-redact"

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

[features]
default = []
http = [
    "json",
    "dep:form_urlencoded",
    "dep:http",
    "dep:url",
]
json = ["dep:serde_json"]
serde = ["dep:serde"]

[lib]
name = "qubit_redact"
path = "src/lib.rs"
doctest = true

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "http_diagnostics"
path = "benches/http_diagnostics.rs"
harness = false
required-features = ["http"]

[[bench]]
name = "redaction_policy"
path = "benches/redaction_policy.rs"
harness = false

[dependencies.form_urlencoded]
version = "1.2"
optional = true

[dependencies.http]
version = "1.4"
optional = true

[dependencies.serde]
version = "1"
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.url]
version = "2.5"
optional = true

[dev-dependencies.criterion]
version = "0.8.2"
default-features = false

[dev-dependencies.indexmap]
version = "2"

[dev-dependencies.proptest]
version = "1.0"

[dev-dependencies.serde]
version = "1"
features = ["derive"]

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

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

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