serde_yaml2

Crates.ioserde_yaml2
lib.rsserde_yaml2
version0.1.2
sourcesrc
created_at2024-04-18 18:00:50.34205
updated_at2024-06-15 14:32:59.042339
descriptionSerde integration for yaml_rust2 crate
homepage
repositoryhttps://github.com/zim32/serde_yaml2
max_upload_size
id1212766
size69,036
(zim32)

documentation

README

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
Commit count: 21

cargo fmt