serde_with_macros is a procedural macro. It will run at compile time and transform your program's source code.
serde_with_macros
Run this command in a terminal, in your project's directory:
cargo add serde_with_macros
To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:
Cargo.toml
[dependencies]
serde_with_macros = "3.16.1"
You may need to import the macro(s) with use serde_with_macros::*.
use serde_with_macros::*
Back to the crate overview.