redacted_debug

Crates.ioredacted_debug
lib.rsredacted_debug
version0.2.0
sourcesrc
created_at2019-02-05 06:30:23.333584
updated_at2023-01-16 06:21:56.99071
descriptionA small procedural macro to allow redacting sensitive information without losing the ease of use of deriving Debug
homepage
repository
max_upload_size
id112848
size7,322
owners (github:smbc-rs:owners)

documentation

README

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 "...".

Commit count: 0

cargo fmt