Crate sixtyfps_build[−][src]
Expand description
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.rs
script.
The main entry point of this crate is the compile()
function
Example
In your Cargo.toml:
[package]
...
build = "build.rs"
[dependencies]
sixtyfps = "0.1.4"
...
[build-dependencies]
sixtyfps-build = "0.1.4"
In the build.rs
file:
ⓘ
fn main() {
sixtyfps_build::compile("ui/hello.60").unwrap();
}
Then in your main file
ⓘ
sixtyfps::include_modules!();
fn main() {
HelloWorld::new().run();
}
Structs
The structure for configuring aspects of the compilation of .60
markup files to Rust.
Enums
Error returned by the compile
function
Functions
Compile the .60
file and generate rust code for it.
Same as compile
, but allow to specify a configuration.