bevy_api_gen 0.6.0

Code generator tool for bevy
1
2
3
4
5
6
7
8
fn main() {
    // Use to set RUSTC_CHANNEL so we can compute target dir from rustc_plugin
    let toolchain_toml = include_str!("rust-toolchain.toml");
    let toolchain_table = toolchain_toml.parse::<toml::Table>().unwrap();
    let toolchain = toolchain_table["toolchain"].as_table().unwrap();
    let channel = toolchain["channel"].as_str().unwrap();
    println!("cargo:rustc-env=RUSTC_CHANNEL={channel}");
}