the msgpack serde implementation gets pretty close to what I'm after. only downside is that the keys have to be encoded as strings (see highlighted)
Posts
-
is there a binary serialisation format with json like data types where keys are explicitly a number for the wire? -
is there a binary serialisation format with json like data types where keys are explicitly a number for the wire?ideally I would like to write something like this with serde:
#[derive(Serialize, Deserialize)]
struct Person {
#[key(1)]
name: String,
#[key(2)]
age: usize,
} -
is there a binary serialisation format with json like data types where keys are explicitly a number for the wire?is there a binary serialisation format with json like data types where keys are explicitly a number for the wire?
don't say protobufs, i explicitly do not want protobufs
-
everybody wants to be the guy to write the filesystem that solves data loss once and for all because it would look good as hell on a resumeeverybody wants to be the guy to write the filesystem that solves data loss once and for all because it would look good as hell on a resume