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 4593/week @ 2024-07-22 6031/week @ 2024-07-29 6072/week @ 2024-08-05 8393/week @ 2024-08-12 4704/week @ 2024-08-19 6869/week @ 2024-08-26 7115/week @ 2024-09-02 4893/week @ 2024-09-09 2755/week @ 2024-09-16 3670/week @ 2024-09-23 4338/week @ 2024-09-30 4098/week @ 2024-10-07 3663/week @ 2024-10-14 2658/week @ 2024-10-21 2814/week @ 2024-10-28 5165/week @ 2024-11-04

14,312 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