#serde-yaml #yaml #serialization #deserialize #serde

serde_yaml2

Serde integration for yaml_rust2 crate

3 releases

0.1.2 Jun 15, 2024
0.1.1 Apr 20, 2024
0.1.0 Apr 18, 2024

#639 in Encoding

Download history 226/week @ 2024-09-20 125/week @ 2024-09-27 57/week @ 2024-10-04 128/week @ 2024-10-11 112/week @ 2024-10-18 55/week @ 2024-10-25 140/week @ 2024-11-01 141/week @ 2024-11-08 208/week @ 2024-11-15 191/week @ 2024-11-22 265/week @ 2024-11-29 16843/week @ 2024-12-06 19880/week @ 2024-12-13 336/week @ 2024-12-20 1734/week @ 2024-12-27 8770/week @ 2025-01-03

34,130 downloads per month
Used in 2 crates

MIT/Apache

50KB
1K SLoC

serde_yaml2

This crate provides serde integration for yaml-rust2

Usage

See examples dir for usage examples

Enum representation

Enums are represented using external tagging. For example:

#[derive(Serialize, Debug, PartialEq)]
enum TestEnum {
    VariantA,
    VariantB(i32, f64),
}

will be represented as:

VariantA: ~

or

VariantB: [1, 4.5]

Running tests

Just execute

cargo test

Dependencies

~2.4–3MB
~55K SLoC