Michelle Hughes on Nostr: Yoooo, serde_yaml might be the coolest yaml parser I've seen. Along with serde's ...
Yoooo, serde_yaml might be the coolest yaml parser I've seen. Along with serde's derive features, you can set defaults and everything. Basically for free, your yaml configs will get validated!
If there are only certain permissible values of a field, you can just define an enum, and serde_yaml will validate that too!
#Rust
Published at
2024-03-08 03:43:22Event JSON
{
"id": "91273c4d2bf68e596a997ad5fdcd62222cf802bd0073b86a37591f63f9575cb4",
"pubkey": "f3d33c8b5c4c76edbfe88f252208556b6cde382d70b0f8f7d3dfc91c9ea753d5",
"created_at": 1709869402,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"proxy",
"https://a2mi.social/users/MegaMichelle/statuses/112058001194161633",
"activitypub"
]
],
"content": "Yoooo, serde_yaml might be the coolest yaml parser I've seen. Along with serde's derive features, you can set defaults and everything. Basically for free, your yaml configs will get validated!\n\nIf there are only certain permissible values of a field, you can just define an enum, and serde_yaml will validate that too!\n\n#Rust",
"sig": "c91a46b26269ab6bfd81e0d8c7afc16dde12e200fae9b3664eaff8db7a3f8dfcb5a92122e17624153dc3cc5d7eb1e4a3a4d23e22426f70f9365006c8f3756ecb"
}