serde_encom

Crates.ioserde_encom
lib.rsserde_encom
version0.3.2
sourcesrc
created_at2023-02-06 14:07:43.515178
updated_at2023-10-16 20:25:08.45639
descriptionOfficial EnCom library
homepagehttps://github.com/RoDmitry/serde_encom
repositoryhttps://github.com/RoDmitry/serde_encom
max_upload_size
id777932
size483,749
Dmitry Rodionov (RoDmitry)

documentation

README

Serde EnCom

Crate API

Made to replace old and loved JSON

EnCom specification

As long as you use standard serialization, and don't use serde_bytes, then the serialization output will be a valid string (utf8, not binary).

If you are using string &str or byte &[u8] slice in your resulting structure, it will not be copied (Zero-copy).

You can try encom_from_json!() macro to convert your own JSON and test it. Resulting EnCom will be sorted alphabetically.

Todo:

  • Skip Option::None by default, and only if #[serde(serialize_with = "path")] is passed, then serialize None
  • Fix Stream deserializer
  • Fix File deserializer
  • Fix extra space after } in serializer
  • Fix parse exponent in deserializer
  • Change errors

Thanks serde_json and it's contributors for the base code that was used it this project

Commit count: 57

cargo fmt