10 releases
new 0.3.4 | Apr 13, 2025 |
---|---|
0.3.3 | Apr 13, 2025 |
0.3.2 | Oct 16, 2023 |
0.3.1 | Sep 12, 2023 |
0.1.4 | Feb 10, 2023 |
#710 in Encoding
539 downloads per month
445KB
10K
SLoC
Serde EnCom
Made to replace old and loved JSON
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:
- Fix Stream deserializer
- Fix File deserializer
- Fix extra space after
}
in serializer - Fix parse exponent in deserializer
- Change errors
- Fix features
Maybe:
Skip Option::None by default, and only if #[serde(serialize_with = "path")]
is passed, then serialize None
Thanks serde_json and it's contributors for the base code that was used it this project
Dependencies
~270–680KB
~13K SLoC