redacted_debug 0.2.0

A small procedural macro to allow redacting sensitive information without losing the ease of use of deriving Debug
Documentation

A generic mechanism for redacting things in your Debug impls

There is a small example that shows how to use it, but generally speaking:

use redacted_debug::RedactedDebug;

#[derive(RedactedDebug)]
struct User {
    username: String,
    #[redacted]
    password: String,
    /* ... */
}

This will give you a Debug implementation, but when printed the password field will be "...".