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

#6 in #sanitize

Download history 3110/week @ 2024-02-26 3537/week @ 2024-03-04 3721/week @ 2024-03-11 3530/week @ 2024-03-18 3028/week @ 2024-03-25 2957/week @ 2024-04-01 3669/week @ 2024-04-08 4072/week @ 2024-04-15 4085/week @ 2024-04-22 4372/week @ 2024-04-29 5254/week @ 2024-05-06 3784/week @ 2024-05-13 5940/week @ 2024-05-20 3087/week @ 2024-05-27 3667/week @ 2024-06-03 4719/week @ 2024-06-10

17,535 downloads per month
Used in sanitizer

MIT license

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
~35K SLoC