Skip to main content

Molecule Tools

Schema Compiler and Code Generator

Install

The official schema compiler and code generator are written in Rust and can be installed via Cargo:

cargo install moleculec --locked
note

The official code generator only supports Rust and C.

Usage

Generate the code with the command below:

moleculec --language <language> --schema-file <schema-file>

Find more details with the command below:

moleculec --help

Other Languages

Molecule's reference implementation is in Rust and C. Implementations in other languages are maintained by their respective authors.

Plugins for Editors