Skip to content

Commit 6fd0664

Browse files
committed
get it right
1 parent a88a708 commit 6fd0664

File tree

32 files changed

+1481
-250
lines changed

32 files changed

+1481
-250
lines changed

Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ core_functions = ["bevy_mod_scripting_functions/core_functions"]
6666
bevy_a11y_bindings = ["bevy_mod_scripting_functions/bevy_a11y"]
6767
bevy_animation_bindings = ["bevy_mod_scripting_functions/bevy_animation"]
6868
bevy_asset_bindings = ["bevy_mod_scripting_functions/bevy_asset"]
69+
# bevy_camera
6970
bevy_color_bindings = ["bevy_mod_scripting_functions/bevy_color"]
7071
bevy_core_pipeline_bindings = [
7172
"bevy_mod_scripting_functions/bevy_core_pipeline",
@@ -76,17 +77,22 @@ bevy_gltf_bindings = ["bevy_mod_scripting_functions/bevy_gltf"]
7677
bevy_image_bindings = ["bevy_mod_scripting_functions/bevy_image"]
7778
bevy_input_bindings = ["bevy_mod_scripting_functions/bevy_input"]
7879
bevy_input_focus_bindings = ["bevy_mod_scripting_functions/bevy_input_focus"]
80+
# bevy_light
7981
bevy_math_bindings = ["bevy_mod_scripting_functions/bevy_math"]
8082
bevy_mesh_bindings = ["bevy_mod_scripting_functions/bevy_mesh"]
8183
bevy_pbr_bindings = ["bevy_mod_scripting_functions/bevy_pbr"]
8284
bevy_picking_bindings = ["bevy_mod_scripting_functions/bevy_picking"]
85+
# bevy_post_process
8386
bevy_reflect_bindings = ["bevy_mod_scripting_functions/bevy_reflect"]
8487
bevy_render_bindings = ["bevy_mod_scripting_functions/bevy_render"]
8588
bevy_scene_bindings = ["bevy_mod_scripting_functions/bevy_scene"]
8689
bevy_sprite_bindings = ["bevy_mod_scripting_functions/bevy_sprite"]
90+
# bevy_sprite_renderer
8791
bevy_text_bindings = ["bevy_mod_scripting_functions/bevy_text"]
8892
bevy_time_bindings = ["bevy_mod_scripting_functions/bevy_time"]
8993
bevy_transform_bindings = ["bevy_mod_scripting_functions/bevy_transform"]
94+
# bevy_ui
95+
# bevy_ui_render
9096

9197
# optional
9298
unsafe_lua_modules = ["bevy_mod_scripting_lua?/unsafe_lua_modules"]
@@ -244,6 +250,7 @@ bevy = { workspace = true, features = [
244250
"x11",
245251
"bevy_ui",
246252
"default_font",
253+
"custom_cursor",
247254
] }
248255
bevy_platform = { workspace = true }
249256
clap = { workspace = true, features = ["derive"] }

codegen/src/bin/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ fn main() {
2929

3030
info!("Using RUST_LOG: {:?}", env::var("RUST_LOG"));
3131

32+
info!(
33+
"MSRV target: {}",
34+
args.mrsv_target()
35+
.map(|t| t.to_string())
36+
.unwrap_or(String::from("unset"))
37+
);
38+
3239
info!("Computing crate metadata");
3340
let metadata = cargo_metadata::MetadataCommand::new()
3441
.no_deps()

codegen/src/passes/find_methods_and_fields.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,16 @@ pub(crate) fn find_methods_and_fields(ctxt: &mut BevyCtxt<'_>, args: &Args) -> b
196196
.lookup_stability(fn_did)
197197
.map(|stability| match stability.stable_since() {
198198
Some(StableSince::Version(rustc_version)) => {
199-
args.rustc_version_is_greater_than_mrsv_target(rustc_version)
199+
!args.rustc_version_is_greater_than_mrsv_target(rustc_version)
200200
}
201201
_ => false,
202202
})
203203
.unwrap_or(true);
204204

205+
log::info!("function: {}, is_stable_for_target: {is_stable_for_target}, stability: {:?}", ctxt.tcx.item_name(def_id), ctxt
206+
.tcx
207+
.lookup_stability(fn_did));
208+
205209
if !is_stable_for_target {
206210
log::debug!(
207211
"Skipping unstable function: `{}` on type: `{}`, msrv target: {:?}",

crates/bindings/bevy_a11y_bms_bindings/Cargo.toml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/bindings/bevy_animation_bms_bindings/Cargo.toml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/bindings/bevy_asset_bms_bindings/Cargo.toml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/bindings/bevy_camera_bms_bindings/Cargo.toml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/bindings/bevy_color_bms_bindings/Cargo.toml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/bindings/bevy_core_pipeline_bms_bindings/Cargo.toml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/bindings/bevy_ecs_bms_bindings/Cargo.toml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)