Skip to content

Latest commit

 

History

History

serde

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

🐻‍❄️🪚 azalia-serde

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.

Usage

tracing::Level (requires tracing feature)

use serde::{Serialize, Deserialize};

#[derive(Serialize, Deserialize)]
struct MyStruct {
    #[serde(with = "azalia_serde::tracing")]
    level: tracing::Level,
}

aws_types::types::Region (requires aws feature)

use serde::{Serialize, Deserialize};

#[derive(Serialize, Deserialize)]
struct MyStruct {
    #[serde(with = "azalia_serde::aws::region")]
    region: aws_sdk_s3::types::Region
}