21 releases

0.8.0 Mar 19, 2024
0.8.0-alpha Jul 29, 2021
0.7.5 Feb 28, 2023
0.7.3 Jan 24, 2022
0.0.4 Jul 30, 2019

#125 in Encoding

Download history 1458/week @ 2023-12-06 2223/week @ 2023-12-13 1927/week @ 2023-12-20 1110/week @ 2023-12-27 1902/week @ 2024-01-03 1984/week @ 2024-01-10 1643/week @ 2024-01-17 2090/week @ 2024-01-24 1836/week @ 2024-01-31 1182/week @ 2024-02-07 1442/week @ 2024-02-14 1389/week @ 2024-02-21 2192/week @ 2024-02-28 1615/week @ 2024-03-06 1806/week @ 2024-03-13 1573/week @ 2024-03-20

7,449 downloads per month
Used in 99 crates (14 directly)

MIT license

13KB
354 lines

Molecule

License GitHub Actions

Another serialization system: minimalist and canonicalization.

Documents

Tools

Schema Compiler and Code Generator

Install

The official schema compiler and code generator are written in Rust, so you can install it via Cargo:

cargo install moleculec --locked

Note: the official code generator is only support two languages: Rust and C.

Usage

  • You can use the follow command to generate the code:

    moleculec --language <language> --schema-file <schema-file>
    
  • More details can be found by the follow command:

    moleculec --help
    

Other Languages

Molecule's reference implementation is in Rust and C.

Implementations in other languages are maintained by respective authors.

Plugins for Editors

Benchmark

Supported Rust Versions

The minimum supported version is 1.56.1. The current Molecule version is not guaranteed to build on Rust versions earlier than the minimum supported version.

License

Licensed under MIT License.

Dependencies

~190KB