serde_with_macros is a procedural macro. It will run at compile time and transform your program's source code.

Adding serde_with_macros macro(s) as a dependency

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:

serde_with_macros = "3.16.1"

You may need to import the macro(s) with use serde_with_macros::*.

Read the serde_with_macros documentation.

Back to the crate overview.