Skip to content

Commit 542003f

Browse files
committed
bump bevy resolution in codegen
1 parent be8f5f6 commit 542003f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

codegen/Cargo.bootstrap.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2024"
66

77
[dependencies]
88
bevy_mod_scripting_bindings = { path = "{{BMS_BINDINGS_PATH}}" }
9-
bevy_reflect = { version = "0.16.0", features = [
9+
bevy_reflect = { version = "0.17", features = [
1010
"smol_str",
1111
"glam",
1212
"petgraph",

xtask/src/main.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,13 +1216,15 @@ impl Xtasks {
12161216
)?;
12171217

12181218
let metadata = Self::main_workspace_cargo_metadata()?;
1219+
12191220
let bevy_version = metadata
12201221
.packages
12211222
.iter()
1222-
.find(|p| p.name.as_str() == "bevy")
1223-
.expect("Could not find bevy package in metadata")
1224-
.version
1225-
.clone();
1223+
.filter_map(|p| (p.name.as_str() == "bevy").then_some(&p.version))
1224+
.max()
1225+
.expect("could not find bevy package in metadata");
1226+
1227+
log::info!("Using bevy version {bevy_version}");
12261228
// create directories if they don't already exist
12271229
std::fs::create_dir_all(&bevy_dir)?;
12281230
std::fs::create_dir_all(&output_dir)?;

0 commit comments

Comments
 (0)