Thanks to visit codestin.com
Credit goes to lib.rs

Cargo Features

[dependencies]
redactable = { version = "0.7.1", default-features = false, features = ["policy", "redaction", "json", "slog", "tracing", "tracing-valuable", "chrono", "time", "ip-address", "uuid", "extras", "testing"] }
default = policy, redaction

These default features are set whenever redactable is added without default-features = false somewhere in the dependency tree.

policy default redaction

Affects redactable::policy

redaction default ip-address? json? = policy
json slog? tracing? = redaction

Enables serde and serde_json

Affects escape_hatches::NotSensitiveJson, escape_hatches::NotSensitiveJsonExt, output::RedactedJson, output::RedactedJsonRef, output::RedactedJsonExt

slog = json

Enables slog and slog of redactable-derive

redactable-derive:

When enabled, generates slog::Value impl for derived types

Affects redactable::slog

tracing tracing-valuable? = json

Enables tracing and tracing of redactable-derive

redactable-derive:

When enabled, generates tracing marker impls for derived types

Affects redactable::tracing

tracing-valuable = tracing

Enables valuable, valuable of tracing

Affects tracing::RedactedValuable, tracing::TracingValuableExt

chrono extras?

Enables chrono

time extras?

Enables time

ip-address extras? = redaction
uuid extras?

Enables uuid

extras = chrono, ip-address, time, uuid
testing