#deserialize #validation #serde #proc-macro

macro serde-validate-macro

A procedural macro that validates the deserialization of a struct

2 unstable releases

0.2.0 Jul 29, 2024
0.1.0 Jul 21, 2024

#2107 in Procedural macros

Download history 112/week @ 2024-07-20 151/week @ 2024-07-27 10/week @ 2024-08-03 4/week @ 2024-08-10 2/week @ 2024-08-31 26/week @ 2024-09-14 20/week @ 2024-09-21 30/week @ 2024-09-28 3/week @ 2024-10-05

57 downloads per month
Used in serde-validate

GPL-3.0-or-later

15KB
228 lines

serde-validate-macro

This crate provides the validate_deser procedural macro for the serde-validate crate.

Users should refer to the serde-validate crate for usage details and examples.

Installation

This crate is typically used as a dependency of the serde-validate crate. To use the validate_deser macro, enable the macro feature in the serde-validate crate.

Add this to your Cargo.toml:

[dependencies]
serde-validate = { version = "0.1" }

License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.


lib.rs:

serde-validate-macro

This crate provides the validate_deser procedural serde-validate-macro for the serde-validate crate.

Users should prefer using the serde-validate crate.

Dependencies

~235–680KB
~16K SLoC