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

#9 in #sanitize

Download history 5297/week @ 2024-07-26 6633/week @ 2024-08-02 6838/week @ 2024-08-09 6681/week @ 2024-08-16 5948/week @ 2024-08-23 7165/week @ 2024-08-30 5655/week @ 2024-09-06 2791/week @ 2024-09-13 3673/week @ 2024-09-20 3985/week @ 2024-09-27 4523/week @ 2024-10-04 3402/week @ 2024-10-11 2950/week @ 2024-10-18 2876/week @ 2024-10-25 4781/week @ 2024-11-01 3143/week @ 2024-11-08

14,462 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
~37K SLoC