[−][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.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.0.5"
...
[build-dependencies]
sixtyfps-build = "0.0.5"
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
CompilerConfiguration | The structure for configuring aspects of the compilation of |
Enums
CompileError | Error returned by the |
Functions
compile | Compile the |
compile_with_config | Same as |