RSV-Challenge icon indicating copy to clipboard operation
RSV-Challenge copied to clipboard

[Rust] rsv crate with serde support

Open mostlymaxi opened this issue 1 year ago • 1 comments

Decided to just go ahead and make an rsv encoder/decoder using the serde framework for rust. Should make it compatible with most structs and types (w.i.p) that have Serialize/Deserialize traits.

Probably a bit too big to shove into this challenge but figured I'd link it in case someone else wants to play around with the crate.

mostlymaxi avatar Jan 31 '24 00:01 mostlymaxi

And based on the above library, I could add RSV support to convert2json, so we can now convert it to JSON and query it in jq:

$ rq .[0][1] Valid_001.rsv
"🌎"
$ rsv2json Valid_001.rsv
[["Hello","🌎",null,""],["A\u0000B\nC","Test 𝄞"],[],[""]]

simonrupf avatar Jun 17 '24 06:06 simonrupf