Crates.io | serde_yaml2 |
lib.rs | serde_yaml2 |
version | 0.1.2 |
source | src |
created_at | 2024-04-18 18:00:50.34205 |
updated_at | 2024-06-15 14:32:59.042339 |
description | Serde integration for yaml_rust2 crate |
homepage | |
repository | https://github.com/zim32/serde_yaml2 |
max_upload_size | |
id | 1212766 |
size | 69,036 |
This crate provides serde integration for yaml-rust2
See examples dir for usage examples
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]
Just execute
cargo test