bencode inspired tight self describing serialization format
bendn errors
c307650 · 11 days ago 3Commits
-rw-r--r--
19
-rw-r--r--
303
-rw-r--r--
541
d---------
-rw-r--r--
56340
d---------
README.md

bendncode

a compact self-describing binary format, similar to CBOR or bencode. this should work with most serde attributes, unlike postcard or other non self-describing crates.

an example:

{
  "hi": [1, "string"]
}

bendncodes to

m 01                 // map of length 1
   s 02              // keyed with a string of length 2
     hi              // "hi"
   l 02              // value of list of two elements
     u  01           // an uinteger of one
     s  06           // string(6) of "string"
        string