4 releases
0.2.2 | Nov 4, 2021 |
---|---|
0.2.1 | May 19, 2021 |
0.2.0 | Mar 7, 2021 |
0.1.0 | Dec 21, 2020 |
#7 in #sanitize
17,724 downloads per month
Used in sanitizer
33KB
841 lines
sanitizer-macros
Derive macros for sanitizer crate
Usage
use sanitizer::prelude::*;
#[derive(Sanitize)]
struct User {
#[sanitize(trim)]
name: String,
#[sanitize(trim, lower_case)]
email: String
}
lib.rs
:
Macros that allows seamless sanitizing on struct fields
Dependencies
~1.5MB
~34K SLoC