The azalia-serde crate provides blanket serde
implementations for crates that don't expose any. This uses Cargo's crate features to explicitly enable which implementations you need, rather than adding them all at once.
We only provide implementations to Rust types that are most used by us, so we will probably reject most requests to add more types other than the ones listed.
Note
This crate is apart of the Azalia family of crates by Noelware, LLC.
This is the only crate that is available on crates.io
instead of Noelware's public
Cargo registry where most Azalia crates live in.
use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize)]
struct MyStruct {
#[serde(with = "azalia_serde::tracing")]
level: tracing::Level,
}
use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize)]
struct MyStruct {
#[serde(with = "azalia_serde::aws::region")]
region: aws_sdk_s3::types::Region
}