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

Download history 3680/week @ 2024-03-14 3159/week @ 2024-03-21 3337/week @ 2024-03-28 2234/week @ 2024-04-04 4511/week @ 2024-04-11 4227/week @ 2024-04-18 4804/week @ 2024-04-25 3261/week @ 2024-05-02 6016/week @ 2024-05-09 4459/week @ 2024-05-16 4918/week @ 2024-05-23 2577/week @ 2024-05-30 4862/week @ 2024-06-06 4442/week @ 2024-06-13 5146/week @ 2024-06-20 2695/week @ 2024-06-27

17,724 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
~34K SLoC