Crate gluon

source ·
Expand description

This crate contains contains the implementation for the gluon programming language.

Gluon is a programming language suitable for embedding in an existing application to extend its behaviour. For information about how to use this library the best resource currently is the tutorial which contains examples on how to write gluon programs as well as how to run them using this library.



  • Advanced compiler pipeline which ensures that the compilation phases are run in order even if not the entire compilation procedure is needed.
  • Implementation of the import! macro.


  • Declares fields useable by the record macros
  • Creates a GluonFunction from a function implementing VMFunction
  • Macro that creates a record that can be passed to gluon
  • Creates a pattern which matches on marshalled gluon records
  • Creates a Rust type compatible with the type of record_no_decl!



  • Error type wrapping all possible errors that can be generated from gluon



  • Extension trait which provides methods to load and execute gluon code


  • Creates a new virtual machine with support for importing other modules and with all primitives loaded.

Type Aliases

  • Type alias for results returned by gluon