bevy_state_plugin_generator 1.3.0

A build-dependency that generates a Bevy State Plugin from a simple state definition.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::io;
use std::process::Command;

fn configure_hooks_path(path: &str) -> io::Result<bool> {
    Command::new("git")
        .args(["config", "--local", "core.hooksPath", path])
        .status()
        .map(|code| code.success())
}

fn main() {
    println!("cargo::rustc-check-cfg=cfg(coverage_nightly)");
    assert!(
        configure_hooks_path("hooks").unwrap(),
        "configure_hooks_path: unexpected exit code"
    );
}