bevy_typst_textures 0.3.0

A simple Resource for generating rasterized textures out of either standalone .typ files or structured, zipped typst projects, built on typst-as-lib.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    println!("cargo::rerun-if-changed=assets/");
    if cfg!(target_os = "macos") {
        // ditto -c -k --sequesterRsrc --keepParent src_directory archive.zip
        // run this only when doing development on the repo.
        // use std::process::Command;
        // let _ = Command::new("ditto")
        //     .args(["-c", "-k", "--sequesterRsrc", "--keepParent"])
        //     .args(["assets/example", "assets/example.zip"])
        //     .output();
    } else {
        // TODO: other compression tools
    };
}