azalia-serde

Crates.ioazalia-serde
lib.rsazalia-serde
version0.1.11
created_at2025-03-30 03:07:39.683609+00
updated_at2025-09-08 04:21:57.11297+00
description🐻‍❄️🪚 Provides useful (de)serialization implementations for common types within external libraries
homepage
repositoryhttps://github.com/Noelware/azalia
max_upload_size
id1611987
size82,413
rust-crates (github:noelware:rust-crates)

documentation

README

🐻‍❄️🪚 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.

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
}
Commit count: 365

cargo fmt