rustree 0.1.0

Rustree is a notepad that stores text (in HTML format) in a hierarchical structure.
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    use std::env;
    use std::path::PathBuf;
    println!("cargo:rerun-if-changed=src/ui/uifile.fl");
    let g = fl2rust::Generator::default();
    let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
    g.in_out(
        "src/ui/uifile.fl",
        out_path.join("uifile.rs").to_str().unwrap(),
    )
    .expect("Failed to generate rust from fl file!");
}