azalia-serde

Crates.ioazalia-serde
lib.rsazalia-serde
version
sourcesrc
created_at2025-03-30 03:07:39.683609+00
updated_at2025-04-04 21:53:54.917784+00
description🐻‍❄️🪚 Provides useful (de)serialization implementations for common types within external libraries
homepage
repositoryhttps://github.com/Noelware/azalia
max_upload_size
id1611987
Cargo.toml error:TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
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: 0

cargo fmt