[−][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.2"
...
[build-dependencies]
sixtyfps-build = "0.0.2"
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 | CompilationConfiguration allows configuring different aspects of the compiler. |
Enums
CompileError | Error returned by the |
Functions
compile | Compile the |
compile_with_config | Same as |