[][src]Crate flp_compiler

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:

This example is not tested
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.

Structs

Build

A build configuration.