4 releases

0.1.3 May 12, 2025
0.1.2 Jun 15, 2024
0.1.1 Apr 20, 2024
0.1.0 Apr 18, 2024

#943 in Encoding

Download history 14887/week @ 2025-09-14 11357/week @ 2025-09-21 15801/week @ 2025-09-28 13805/week @ 2025-10-05 12829/week @ 2025-10-12 9954/week @ 2025-10-19 8283/week @ 2025-10-26 16669/week @ 2025-11-02 10904/week @ 2025-11-09 16045/week @ 2025-11-16 9276/week @ 2025-11-23 14961/week @ 2025-11-30 9945/week @ 2025-12-07

50,673 downloads per month
Used in 11 crates (7 directly)

MIT/Apache

51KB
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–3.5MB
~56K SLoC