rust-asn1 VS json

Compare rust-asn1 vs json and see what are their differences.

rust-asn1

A Rust ASN.1 (DER) serializer. (by alex)

json

Strongly typed JSON library for Rust (by serde-rs)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
rust-asn1 json
1 41
95 4,502
- 1.9%
8.1 8.8
29 days ago 9 days ago
Rust Rust
BSD 3-clause "New" or "Revised" License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

rust-asn1

Posts with mentions or reviews of rust-asn1. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-02-28.
  • Weird architectures weren't supported to begin with
    4 projects | news.ycombinator.com | 28 Feb 2021
    > 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...

json

Posts with mentions or reviews of json. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-01.

What are some alternatives?

When comparing rust-asn1 and json you can also consider the following projects:

serde - Serialization framework for Rust

json-rust - JSON implementation in Rust

hjson-rust for serde - Hjson for Rust

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

serde-yaml - Strongly typed YAML library for Rust

RapidJSON - A fast JSON parser/generator for C++ with both SAX/DOM style API

rust-bencode - Implementation of Bencode encoding written in rust

ArduinoJson - 📟 JSON library for Arduino and embedded C++. Simple and efficient.

fast-float-rust - Super-fast float parser in Rust (now part of Rust core)

setuptools-rust - Setuptools plugin for Rust support

roxmltree - Represent an XML document as a read-only tree.