3 releases
0.1.2 | Jun 15, 2024 |
---|---|
0.1.1 | Apr 20, 2024 |
0.1.0 | Apr 18, 2024 |
#722 in Encoding
438 downloads per month
Used in 2 crates
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
~2.3–3MB
~54K SLoC