Skip to content

Commit

Permalink
Fix build and bevy_time_runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Multirious committed Jun 8, 2024
1 parent 4bdea8c commit 7e8f5c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resolver = "2"

[dependencies]
bevy = { version = "0.13.0", default-features = false }
bevy_time_runner = { version = "0.1.2" }
bevy_time_runner = { version = "0.1.4" }

[dev-dependencies]
bevy-inspector-egui = "0.23"
Expand Down
14 changes: 3 additions & 11 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
use rustc_version::{version_meta, Channel};

fn main() {
// println!("cargo::rustc-check-cfg=cfg(CHANNEL_STABLE)");
// println!("cargo::rustc-check-cfg=cfg(CHANNEL_BETA)");
// println!("cargo::rustc-check-cfg=cfg(CHANNEL_NIGHTLY)");
// println!("cargo::rustc-check-cfg=cfg(CHANNEL_DEV)");
// Set cfg flags depending on release channel
let channel = match version_meta().unwrap().channel {
Channel::Stable => "CHANNEL_STABLE",
Channel::Beta => "CHANNEL_BETA",
Channel::Nightly => "CHANNEL_NIGHTLY",
Channel::Dev => "CHANNEL_DEV",
if let Channel::Nightly = version_meta().unwrap().channel {
println!("cargo::rustc-check-cfg=cfg(CHANNEL_NIGHTLY)");
println!("cargo::rustc-cfg=CHANNEL_NIGHTLY")
};
println!("cargo:rustc-cfg={}", channel)
}

0 comments on commit 7e8f5c6

Please sign in to comment.