[][src]Crate sixtyfps_build

This crate serves as a companion crate for the sixtyfps crate. It is meant to allow you to compile the .60 files from your build.rsscript.

The main entry point of this crate is the compile() function

Example

In your Cargo.toml:

[package]
...
build = "build.rs"

[dependencies]
sixtyfps = "0.0.4"
...

[build-dependencies]
sixtyfps-build = "0.0.4"

In the build.rs file:

This example is not tested
fn main() {
    sixtyfps_build::compile("ui/hello.60").unwrap();
}

Then in your main file

This example is not tested
sixtyfps::include_modules!();
fn main() {
    HelloWorld::new().run();
}

Structs

CompilerConfiguration

The structure for configuring aspects of the compilation of .60 markup files to Rust.

Enums

CompileError

Error returned by the compile function

Functions

compile

Compile the .60 file and generate rust code for it.

compile_with_config

Same as compile, but allow to specify a configuration.