nanoserde VS miniserde

Compare nanoserde vs miniserde and see what are their differences.

nanoserde

Serialisation library with zero dependencies (by not-fl3)

miniserde

Data structure serialization library with several opposite design goals from Serde (by dtolnay)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
nanoserde miniserde
3 4
559 724
- -
6.8 7.7
11 days ago 10 days ago
Rust Rust
- 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.

nanoserde

Posts with mentions or reviews of nanoserde. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-10.
  • venial 0.1 - A lightweight alternative to syn
    5 projects | /r/rust | 10 Mar 2022
    what do you think of the parser in nanoserde? https://github.com/not-fl3/nanoserde/blob/master/derive/src/parse.rs
  • How to speed up the Rust compiler in 2022
    7 projects | /r/rust | 24 Feb 2022
    Yeah proc macros have a massive hole in their user experience. Nobody actually wants to use them without syn + quote functionality, so the majority of people just pay the compile time cost of syn/quote/procmacro2. But then a subset of people can't afford to pay the compile time cost, so they either: 1. Don't use them. And remove all of their deps that use them ... which is generally a lot. 2. Hand-manage the TokenStream (which is very much not fun). Macroquad doesn't want syn + quote in their tree because they care _deeply about compile times, so they opted to re-implement serde. Serde is the crowned jewel of the rust ecosystem. Someone feeling unable to use it is a massive failure of the system.
  • The Serde Rust Framework
    14 projects | news.ycombinator.com | 14 Oct 2021

miniserde

Posts with mentions or reviews of miniserde. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-21.
  • Hey Rustaceans! Got a question? Ask here (8/2023)!
    11 projects | /r/rust | 21 Feb 2023
    It's pretty common to avoid macros as they can seem too magical a lot of the time. And with traits, there's experiments like miniserde which specifically avoid monomorphization overhead. I also see people who want to avoid having lots of dependencies relatively often.
  • venial 0.1 - A lightweight alternative to syn
    5 projects | /r/rust | 10 Mar 2022
    Right now, the next step would be to try to reimplement miniserde with venial, and publish benchmarks.
  • Rust takes a major step forward as Linux's second official language
    17 projects | /r/programming | 7 Dec 2021
  • The Serde Rust Framework
    14 projects | news.ycombinator.com | 14 Oct 2021
    The only downside is compile time bloat.

    Serde generates heaps and heaps of generic code. This gets optimized away to be very efficient, but it can be quite cumbersome.

    Ever tried working on a crate with hundreds or thousands of de/serializable types? Compile times shoot through the roof really quickly.

    The maintainer of serde also created `miniserde` [1], which uses dynamic dispatch and can have 4x compile time improvements.

    Due to Rusts lack of orphan instances you really depend on a pervasive standard for serializiation which is used by all libraries, so the ecosystem is really locked in to serde by now.

    [1] https://github.com/dtolnay/miniserde

What are some alternatives?

When comparing nanoserde and miniserde you can also consider the following projects:

serde_v8 - Moved to https://github.com/denoland/deno

ComLightInterop - Cross-platform COM interop library for .NET Core 2.1 or newer

serde - Serialization framework for Rust

node-foundationdb - Modern Node.js FoundationDB bindings

pfr - std::tuple like methods for user defined types without any macro or boilerplate code

manifold - Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.

watt - Runtime for executing procedural macros as WebAssembly

sapio - A Bitcoin Programming Language

rust-by-example - Learn Rust with examples (Live code editor included)