flp-compiler 0.1.0

Floorplan, a memory layout specification language, compiler binding for Rust.
Documentation
  • Coverage
  • 100%
    7 out of 7 items documented0 out of 6 items with examples
  • Size
  • Source code size: 3.53 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.31 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • RedlineResearch/floorplan
    19 0 2
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • cronburg

The Official Floorplan Compiler Crate

This module interfaces with the Haskell implementation of the Floorplan compiler, providing official support for compiling Floorplan specifications into Rust code directly from the cargo toolchain.

In order to use this crate, you must have the flp executable on your $PATH when developing a Floorplan-based memory manager.

In order to compile directly from the cargo toolchain, include a build.rs in your project root similar to the following:

extern crate flp_compiler as flpc;

fn main() {
   flpc::Build::new()
       .src("src/heap/layout.flp")
       .dest("src/heap/layout.rs")
       .compile();
}

For information on acquiring the Floorplan compiler itself, go see the GitHub project here.