Crates.io | cyrly |
lib.rs | cyrly |
version | 0.1.0 |
source | src |
created_at | 2023-04-06 11:43:16.605983 |
updated_at | 2023-04-06 11:43:16.605983 |
description | A serde-based YAML serializer for Rust with an unusual output style |
homepage | |
repository | https://github.com/jcaesar/cyrly |
max_upload_size | |
id | 832130 |
size | 29,702 |
A serde-based YAML serializer for Rust with an unusual output style.
cyrly::to_string(some_val)?
will prdouce something like
{
{ 42: 1336 }: "non-string keys",
"three different string styles": [
plain,
"single-line strings",
"\
multi-line strings are\n\
acceptably readable\n\
\n\
also, yaml 1.1/1.2 ambiguities are quoted:
",
"oFf",
],
look: "trailing comma",
}
I think this is better than X because Y:
"
Note that while the serializer attempts to be conservative where possible
(e.g. always quoting maybe-keywords like no
or on
)
and should always produce valid YAML,
it is still somewhat unusual and may trouble some YAML deserialization implementations.