21 releases

0.7.1 May 26, 2021
0.7.0 Jan 18, 2021
0.6.1 Aug 25, 2020
0.6.0 Apr 23, 2020
0.0.4 Jul 30, 2019

#26 in Build Utils

Download history 44/week @ 2021-02-25 60/week @ 2021-03-04 58/week @ 2021-03-11 41/week @ 2021-03-18 175/week @ 2021-03-25 74/week @ 2021-04-01 110/week @ 2021-04-08 123/week @ 2021-04-15 125/week @ 2021-04-22 66/week @ 2021-04-29 100/week @ 2021-05-06 74/week @ 2021-05-13 82/week @ 2021-05-20 43/week @ 2021-05-27 37/week @ 2021-06-03 95/week @ 2021-06-10

368 downloads per month
Used in 2 crates

MIT license

190KB
5K SLoC

Molecule

License Travis CI

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

~1.5–2.4MB
~52K SLoC