[package]
edition = "2024"
rust-version = "1.94"
name = "qubit-redact"
version = "0.9.0"
authors = ["Haixing Hu <starfish.hu@gmail.com>"]
build = false
include = [
"/Cargo.toml",
"/LICENSE",
"/README.md",
"/README.zh_CN.md",
"/src/**",
"/doc/**",
"/tests/**",
"/benches/**",
]
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]
bigdecimal = [
"serde",
"dep:bigdecimal",
]
default = []
derive = ["dep:qubit-redact-derive"]
http = [
"json",
"dep:form_urlencoded",
"dep:http",
"dep:url",
]
json = [
"serde",
"dep:serde_json",
"dep:qubit-json",
"qubit-budget/json",
]
serde = ["dep:serde"]
uri = ["dep:fluent-uri"]
[lib]
name = "qubit_redact"
path = "src/lib.rs"
doctest = true
[[test]]
name = "application_default_tests"
path = "tests/application_default_tests.rs"
[[test]]
name = "argv_tests"
path = "tests/argv_tests.rs"
[[test]]
name = "compile_diagnostics_tests"
path = "tests/compile_diagnostics_tests.rs"
[[test]]
name = "consumer_api_tests"
path = "tests/consumer_api_tests.rs"
[[test]]
name = "crate_name_tests"
path = "tests/crate_name_tests.rs"
[[test]]
name = "derive_compile_tests"
path = "tests/derive_compile_tests.rs"
[[test]]
name = "derive_empty_enum_tests"
path = "tests/derive_empty_enum_tests.rs"
[[test]]
name = "derive_identifier_regression_tests"
path = "tests/derive_identifier_regression_tests.rs"
[[test]]
name = "derive_projection_visibility_tests"
path = "tests/derive_projection_visibility_tests.rs"
[[test]]
name = "derive_renamed_dependency_tests"
path = "tests/derive_renamed_dependency_tests.rs"
[[test]]
name = "derive_runtime_path_tests"
path = "tests/derive_runtime_path_tests.rs"
[[test]]
name = "derive_serde_budget_regression_tests"
path = "tests/derive_serde_budget_regression_tests.rs"
[[test]]
name = "derive_serde_dependency_tests"
path = "tests/derive_serde_dependency_tests.rs"
[[test]]
name = "derive_serde_enum_representation_tests"
path = "tests/derive_serde_enum_representation_tests.rs"
[[test]]
name = "derive_serde_expansion_tests"
path = "tests/derive_serde_expansion_tests.rs"
[[test]]
name = "derive_serde_feature_guard_tests"
path = "tests/derive_serde_feature_guard_tests.rs"
[[test]]
name = "derive_serde_path_tests"
path = "tests/derive_serde_path_tests.rs"
[[test]]
name = "derive_serde_runtime_tests"
path = "tests/derive_serde_runtime_tests.rs"
[[test]]
name = "derive_serde_shape_budget_tests"
path = "tests/derive_serde_shape_budget_tests.rs"
[[test]]
name = "derive_syntax_contract_tests"
path = "tests/derive_syntax_contract_tests.rs"
[[test]]
name = "derive_unified_redact_tests"
path = "tests/derive_unified_redact_tests.rs"
[[test]]
name = "disabled_policy_tests"
path = "tests/disabled_policy_tests.rs"
[[test]]
name = "display_consumer_tests"
path = "tests/display_consumer_tests.rs"
[[test]]
name = "domain_budget_coverage_tests"
path = "tests/domain_budget_coverage_tests.rs"
[[test]]
name = "domain_tests"
path = "tests/domain_tests.rs"
[[test]]
name = "domain_value_coverage_tests"
path = "tests/domain_value_coverage_tests.rs"
[[test]]
name = "env_tests"
path = "tests/env_tests.rs"
[[test]]
name = "feature_gate_compile_tests"
path = "tests/feature_gate_compile_tests.rs"
[[test]]
name = "field_redaction_tests"
path = "tests/field_redaction_tests.rs"
[[test]]
name = "format_inspection_tests"
path = "tests/format_inspection_tests.rs"
[[test]]
name = "formats_tests"
path = "tests/formats_tests.rs"
[[test]]
name = "global_redaction_config_read_freeze_tests"
path = "tests/global_redaction_config_read_freeze_tests.rs"
[[test]]
name = "global_redaction_config_tests"
path = "tests/global_redaction_config_tests.rs"
[[test]]
name = "http_internal_coverage_tests"
path = "tests/http_internal_coverage_tests.rs"
[[test]]
name = "http_ndjson_contract_tests"
path = "tests/http_ndjson_contract_tests.rs"
[[test]]
name = "http_session_transaction_tests"
path = "tests/http_session_transaction_tests.rs"
[[test]]
name = "http_tests"
path = "tests/http_tests.rs"
[[test]]
name = "inspection_tests"
path = "tests/inspection_tests.rs"
[[test]]
name = "install_global_policy_error_tests"
path = "tests/install_global_policy_error_tests.rs"
[[test]]
name = "json_feature_gate_tests"
path = "tests/json_feature_gate_tests.rs"
[[test]]
name = "json_floor_tests"
path = "tests/json_floor_tests.rs"
[[test]]
name = "json_value_api_tests"
path = "tests/json_value_api_tests.rs"
[[test]]
name = "layered_api_tests"
path = "tests/layered_api_tests.rs"
[[test]]
name = "lib_tests"
path = "tests/lib_tests.rs"
[[test]]
name = "map_api_compile_tests"
path = "tests/map_api_compile_tests.rs"
[[test]]
name = "new_api_tests"
path = "tests/new_api_tests.rs"
[[test]]
name = "one_shot_equivalence_tests"
path = "tests/one_shot_equivalence_tests.rs"
[[test]]
name = "policy_tests"
path = "tests/policy_tests.rs"
[[test]]
name = "private_tests"
path = "tests/private_tests.rs"
[[test]]
name = "projection_scope_tests"
path = "tests/projection_scope_tests.rs"
[[test]]
name = "public_api_compile_tests"
path = "tests/public_api_compile_tests.rs"
[[test]]
name = "public_api_tests"
path = "tests/public_api_tests.rs"
[[test]]
name = "redaction_limits_coverage_tests"
path = "tests/redaction_limits_coverage_tests.rs"
[[test]]
name = "runtime_architecture_tests"
path = "tests/runtime_architecture_tests.rs"
[[test]]
name = "scalar_consumer_tests"
path = "tests/scalar_consumer_tests.rs"
[[test]]
name = "scalar_contract_tests"
path = "tests/scalar_contract_tests.rs"
[[test]]
name = "serde_adapter_coverage_tests"
path = "tests/serde_adapter_coverage_tests.rs"
[[test]]
name = "serde_feature_gate_tests"
path = "tests/serde_feature_gate_tests.rs"
[[test]]
name = "serde_payload_contract_tests"
path = "tests/serde_payload_contract_tests.rs"
[[test]]
name = "shared_budget_tests"
path = "tests/shared_budget_tests.rs"
[[test]]
name = "streaming_display_allocation_tests"
path = "tests/streaming_display_allocation_tests.rs"
[[test]]
name = "structured_serde_coverage_tests"
path = "tests/structured_serde_coverage_tests.rs"
[[test]]
name = "text_tests"
path = "tests/text_tests.rs"
[[test]]
name = "transaction_session_tests"
path = "tests/transaction_session_tests.rs"
[[test]]
name = "uri_global_default_tests"
path = "tests/uri_global_default_tests.rs"
[[test]]
name = "uri_tests"
path = "tests/uri_tests.rs"
[[bench]]
name = "consumer_api_bench"
path = "benches/consumer_api_bench.rs"
harness = false
required-features = [
"derive",
"serde",
"json",
]
[[bench]]
name = "http_uri_bench"
path = "benches/http_uri_bench.rs"
harness = false
required-features = [
"http",
"uri",
]
[[bench]]
name = "redaction_bench"
path = "benches/redaction_bench.rs"
harness = false
required-features = ["json"]
[dependencies.bigdecimal]
version = "0.4"
features = ["serde"]
optional = true
[dependencies.fluent-uri]
version = "0.4"
optional = true
[dependencies.form_urlencoded]
version = "1.2"
optional = true
[dependencies.http]
version = "1.5"
optional = true
[dependencies.qubit-budget]
version = "0.7"
[dependencies.qubit-json]
version = "0.10"
optional = true
[dependencies.qubit-redact-derive]
version = "0.8"
optional = true
[dependencies.serde]
version = "1.0"
optional = true
[dependencies.serde_json]
version = "1.0"
optional = true
[dependencies.url]
version = "2.5"
optional = true
[dev-dependencies.criterion]
version = "0.8"
default-features = false
[dev-dependencies.indexmap]
version = "2.14"
[dev-dependencies.proptest]
version = "1.11"
[dev-dependencies.qubit-redact-derive]
version = "0.8"
[dev-dependencies.serde]
version = "1.0"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.trybuild]
version = "1.0"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(coverage)"]