Rust Encoding

Open-source Rust projects categorized as Encoding

Top 23 Rust Encoding Projects

  • serde

    Serialization framework for Rust

    Latest mention: Rust Design Patterns as a Book | | 2021-01-02

    I guess you are talking about this `Visitor` trait [0]. I have only used serde in combination with the derive macros so please enlighten me, but each `visit_` function of the `Visitor` trait already takes a typed value (`bool`, integer types, ...) so these already have too be parsed (instantiated?) from the input string/bytes. Couldn't you have an `SerdeTypes` enum that implements `From` for each `visit_` type to remove some boilerplate and then use pattern matching? Could you elaborate where there would be overhead, I'm missing? Don't get me wrong, I'm pretty sure, the serde developers know better than me and have good reasons to implement it the way they did, but I'd like to understand the rational behind the decision.


  • json

    Strongly typed JSON library for Rust

    Latest mention: Hey Rustaceans! Got an easy question? Ask here (2/2021)! | | 2021-01-11

    can some help me understand this line in serde_json

  • html5ever

    High-performance browser-grade HTML5 parser

  • bincode

    A binary encoder / decoder implementation in Rust.

    Latest mention: Binary file format solutions | | 2021-01-13


  • byteorder

    Rust library for reading/writing numbers in big-endian and little-endian.

  • pikkr

    JSON parser which picks up values directly without performing tokenization in Rust

  • msgpack-rust

    MessagePack implementation for Rust /[Rust]

  • yaml-rust

    A pure rust YAML implementation.

  • json-rust

    JSON implementation in Rust

  • serde-yaml

    Strongly typed YAML library for Rust

    Latest mention: Hey Rustaceans! Got an easy question? Ask here (2/2021)! | | 2021-01-11

    Instead of deserializing it manually, why don't you use serde and serde-yaml to deserialize the data directly to a data structure?

  • xml-rs

    An XML library in Rust

  • encoding_rs

    A Gecko-oriented implementation of the Encoding Standard in Rust

  • sxd-document

    An XML library in Rust

  • rust-cbor

    CBOR (binary JSON) for Rust with automatic type based decoding and encoding.

  • sxd-xpath

    An XPath library in Rust

  • RustyXML

    A XML parser written in Rust

  • hjson-rust

    Hjson for Rust

  • rust-asn1

    A Rust ASN.1 (DER) serializer.

  • rust-htmlescape

    A HTML entity encoding library for Rust

  • nue

    I/O and binary data encoding for Rust

  • rust-bencode

    Implementation of Bencode encoding written in rust

  • libyaml-rust

    LibYAML bindings for Rust

  • pem-rs

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).


What are some of the best open-source Encoding projects in Rust? This list will help you:

Project Stars
1 serde 3,789
2 json 1,952
3 html5ever 1,197
4 bincode 1,052
5 byteorder 599
6 pikkr 578
7 msgpack-rust 532
8 yaml-rust 417
9 json-rust 385
10 serde-yaml 349
11 xml-rs 324
12 encoding_rs 188
13 sxd-document 134
14 rust-cbor 108
15 sxd-xpath 88
16 RustyXML 80
17 hjson-rust 67
18 rust-asn1 57
19 rust-htmlescape 36
20 nue 33
21 rust-bencode 28
22 libyaml-rust 20
23 pem-rs 19