bevy_auto_plugin 0.6.3

Procedural attribute macros for Bevy apps that reduce boilerplate by automatically registering components, resources, events, states, and systems in your plugin's build function.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use rustc_version::{Channel, version_meta};

fn main() {
    println!("cargo:rustc-check-cfg=cfg(nightly)");
    println!("cargo:rustc-check-cfg=cfg(stable)");

    let version = version_meta().expect("Failed to get rustc version");
    if version.channel == Channel::Nightly {
        println!("cargo:rustc-cfg=nightly");
    } else {
        println!("cargo:rustc-cfg=stable");
    }
    cfg_aliases::cfg_aliases! {
        wasm: { target_arch = "wasm32" },
    }
}