#serde-serialize #serde-yaml #deserialize #serialization #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

#1281 in Encoding

Download history 2159/week @ 2024-11-30 20971/week @ 2024-12-07 13973/week @ 2024-12-14 143/week @ 2024-12-21 1908/week @ 2024-12-28 18811/week @ 2025-01-04 17336/week @ 2025-01-11 8529/week @ 2025-01-18 10176/week @ 2025-01-25 10987/week @ 2025-02-01 12471/week @ 2025-02-08 8416/week @ 2025-02-15 19621/week @ 2025-02-22 14532/week @ 2025-03-01 21791/week @ 2025-03-08 11823/week @ 2025-03-15

69,878 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