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.
Alex Feldman-Crough 0d3676d626 Initial commit 4 months ago
src Initial commit 4 months ago
.gitignore Initial commit 4 months ago
Cargo.toml Initial commit 4 months ago
LICENSE Initial commit 4 months ago
README.md Initial commit 4 months ago

README.md

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");