#serde-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

#672 in Encoding

Download history 205/week @ 2024-11-21 239/week @ 2024-11-28 13488/week @ 2024-12-05 22794/week @ 2024-12-12 827/week @ 2024-12-19 58/week @ 2024-12-26 10303/week @ 2025-01-02 18546/week @ 2025-01-09 15883/week @ 2025-01-16 6352/week @ 2025-01-23 10253/week @ 2025-01-30 14874/week @ 2025-02-06 8681/week @ 2025-02-13 17889/week @ 2025-02-20 15376/week @ 2025-02-27 15438/week @ 2025-03-06

62,223 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

~3MB
~55K SLoC