24 releases

0.7.5 Feb 28, 2023
0.7.3 Jan 24, 2022
0.7.2 Jul 29, 2021
0.7.0 Jan 18, 2021
0.0.4 Jul 30, 2019

#558 in Build Utils

Download history 93/week @ 2023-08-12 23/week @ 2023-08-19 48/week @ 2023-08-26 39/week @ 2023-09-02 101/week @ 2023-09-09 33/week @ 2023-09-16 26/week @ 2023-09-23 25/week @ 2023-09-30 240/week @ 2023-10-07 1001/week @ 2023-10-14 404/week @ 2023-10-21 354/week @ 2023-10-28 27/week @ 2023-11-04 110/week @ 2023-11-11 140/week @ 2023-11-18 152/week @ 2023-11-25

448 downloads per month
Used in 2 crates

MIT license

205KB
5.5K SLoC

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.41.0. The current Molecule version is not guaranteed to build on Rust versions earlier than the minimum supported version.

License

Licensed under MIT License.

Dependencies

~2.4–3.5MB
~71K SLoC