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

#126 in Encoding

Download history 1458/week @ 2023-12-23 1336/week @ 2023-12-30 2271/week @ 2024-01-06 1660/week @ 2024-01-13 2138/week @ 2024-01-20 2016/week @ 2024-01-27 1425/week @ 2024-02-03 706/week @ 2024-02-10 1777/week @ 2024-02-17 1443/week @ 2024-02-24 2416/week @ 2024-03-02 1383/week @ 2024-03-09 2133/week @ 2024-03-16 1929/week @ 2024-03-23 1702/week @ 2024-03-30 1143/week @ 2024-04-06

7,026 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