1 2 3 4
~~kotlinx.serialization was better than serde to me~~ "You cannot use serde for serialization or deserialization if you want to serialize an enum variant index as a varint, as serde_repr cannot fulfill the requirement for varint encoding."