Rust Encoding

Open-source Rust projects categorized as Encoding

Top 23 Rust Encoding Projects

  • GitHub repo serde

    Serialization framework for Rust

    Project mention: Why is rust a productive language and how is the relationship between webassambly? | reddit.com/r/rust | 2021-04-08

    Serde and StructOpt are hard to match (let alone beat) for declarative programming, especially when paired with things like validator.

  • GitHub repo json

    Strongly typed JSON library for Rust (by serde-rs)

    Project mention: Rust on Lambda using the CDK | dev.to | 2021-04-05

    We use the serde_json library to serialise JSON. The event parameter is of type Value that indicates that it is a valid JSON object that could contain any value.

  • GitHub repo html5ever

    High-performance browser-grade HTML5 parser

  • GitHub repo bincode

    A binary encoder / decoder implementation in Rust.

    Project mention: serialization of structs into byte strings | reddit.com/r/rust | 2021-02-19

    I think you could use serde with the Bincode format for this.

  • GitHub repo byteorder

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

  • GitHub repo pikkr

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

  • GitHub repo msgpack-rust

    MessagePack implementation for Rust / msgpack.org[Rust]

  • GitHub repo yaml-rust

    A pure rust YAML implementation.

  • GitHub repo json-rust

    JSON implementation in Rust

  • GitHub repo serde-yaml

    Strongly typed YAML library for Rust

    Project mention: Hey Rustaceans! Got an easy question? Ask here (2/2021)! | reddit.com/r/rust | 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?

  • GitHub repo xml-rs

    An XML library in Rust

  • GitHub repo encoding_rs

    A Gecko-oriented implementation of the Encoding Standard in Rust

  • GitHub repo sxd-document

    An XML library in Rust

  • GitHub repo rust-cbor

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

  • GitHub repo sxd-xpath

    An XPath library in Rust

  • GitHub repo RustyXML

    A XML parser written in Rust

  • GitHub repo hjson-rust for serde

    Hjson for Rust

  • GitHub repo rust-asn1

    A Rust ASN.1 (DER) serializer.

    Project mention: Weird architectures weren't supported to begin with | news.ycombinator.com | 2021-02-28

    > I feel like this really only makes sense if pyca/cryptography had planned on adding the Rust dependency from the very beginning (or from very early on). Is there any indication that was the case?

    I am sure this idea surfaced several times in IRC or possibly in the mailing lists. Certainly, the authors have been toying with handling ASN.1 in rust since 2015 [1], which I guess will be the next logical step.

    I do agree that this is mostly a political stance. pyca/cryptography is a wrapper sandwiched between a gigantic runtime written in C (CPython/PyPy) and a gigantic library written in C (openssl).

    The addition of Rust as dependency enables the inclusion of just 90 lines of Rust [2] where the only part that really couldn't be implemented in pure Python is a line copied from OpenSSL [3] (i.e. it was already available), and which is purely algebraic, therefore not mitigating any real memory issue at all (the reason to use rust in the first place).

    The change in this wrapper (pyca/cryptographic) does not move the needle of security in any significant way, and it is really only meant to send the signal that adding Rust in all other Python packages and especially in the runtime itself will now come at no (political) cost.

    [1] https://github.com/alex/rust-asn1

    [2] https://github.com/pyca/cryptography/blob/main/src/rust/src/...

    [3] https://github.com/openssl/openssl/blob/OpenSSL_1_1_1i/inclu...

  • GitHub repo rust-htmlescape

    A HTML entity encoding library for Rust

  • GitHub repo nue

    I/O and binary data encoding for Rust

  • GitHub repo rust-bencode

    Implementation of Bencode encoding written in rust

  • GitHub repo pem-rs

  • GitHub repo libyaml-rust

    LibYAML bindings for Rust

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). The latest post mention was on 2021-04-08.

Index

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

Project Stars
1 serde 4,037
2 json 2,088
3 html5ever 1,248
4 bincode 1,120
5 byteorder 618
6 pikkr 580
7 msgpack-rust 572
8 yaml-rust 428
9 json-rust 396
10 serde-yaml 367
11 xml-rs 334
12 encoding_rs 196
13 sxd-document 137
14 rust-cbor 110
15 sxd-xpath 88
16 RustyXML 82
17 hjson-rust for serde 67
18 rust-asn1 64
19 rust-htmlescape 38
20 nue 35
21 rust-bencode 29
22 pem-rs 24
23 libyaml-rust 20