You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

374 B

secret

A simple library for wrapping values so that they don't get printed in places they shouldn't.

Secret has support for working with unsized types and smart-pointers in the standard-library, providing quite a bit of flexibility.

use secret::Secret;
let sensitive: &Secret<str> = "hello world".into();
assert_eq!(format!("{:?}", sensitive), "Secret");