#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

#748 in Encoding

Download history 76/week @ 2024-10-30 143/week @ 2024-11-06 187/week @ 2024-11-13 223/week @ 2024-11-20 241/week @ 2024-11-27 9567/week @ 2024-12-04 24166/week @ 2024-12-11 3383/week @ 2024-12-18 72/week @ 2024-12-25 8023/week @ 2025-01-01 17065/week @ 2025-01-08 17157/week @ 2025-01-15 6521/week @ 2025-01-22 10573/week @ 2025-01-29 12560/week @ 2025-02-05 9012/week @ 2025-02-12

42,777 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