| Crates.io | serde_yaml2 |
| lib.rs | serde_yaml2 |
| version | 0.1.3 |
| created_at | 2024-04-18 18:00:50.34205+00 |
| updated_at | 2025-05-12 11:53:11.3057+00 |
| description | Serde integration for yaml_rust2 crate |
| homepage | |
| repository | https://github.com/zim32/serde_yaml2 |
| max_upload_size | |
| id | 1212766 |
| size | 70,337 |
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