Skip to content

Commit c109259

Browse files
committed
Update MSRV from 1.85.0 to 1.87.0 and Rebase
bevy_reflect: Update MSRV from 1.85.0 to 1.87.0
1 parent 4315d52 commit c109259

File tree

2 files changed

+22
-26
lines changed

2 files changed

+22
-26
lines changed

crates/bevy_reflect/Cargo.toml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ homepage = "https://bevy.org"
77
repository = "https://github.com/bevyengine/bevy"
88
license = "MIT OR Apache-2.0"
99
keywords = ["bevy"]
10-
rust-version = "1.85.0"
10+
rust-version = "1.87.0"
1111

1212
[features]
1313
default = ["std", "smallvec", "indexmap", "debug", "auto_register_inventory"]
@@ -57,14 +57,14 @@ wgpu-types = ["dep:wgpu-types"]
5757
## on `no_std` targets, but provides access to certain additional features on
5858
## supported platforms.
5959
std = [
60-
"erased-serde/std",
61-
"downcast-rs/std",
62-
"serde/std",
63-
"glam?/std",
64-
"smol_str?/std",
65-
"uuid?/std",
66-
"bevy_platform/std",
67-
"wgpu-types?/std",
60+
"erased-serde/std",
61+
"downcast-rs/std",
62+
"serde/std",
63+
"glam?/std",
64+
"smol_str?/std",
65+
"uuid?/std",
66+
"bevy_platform/std",
67+
"wgpu-types?/std",
6868
]
6969

7070
## `critical-section` provides the building blocks for synchronization primitives
@@ -76,15 +76,15 @@ critical-section = ["bevy_platform/critical-section"]
7676
auto_register = []
7777
## Enables automatic reflect registration using inventory. Not supported on all platforms.
7878
auto_register_inventory = [
79-
"auto_register",
80-
"bevy_reflect_derive/auto_register_inventory",
81-
"dep:inventory",
79+
"auto_register",
80+
"bevy_reflect_derive/auto_register_inventory",
81+
"dep:inventory",
8282
]
8383
## Enable automatic reflect registration without inventory. This feature has precedence over `auto_register_inventory`.
8484
## See `load_type_registrations` for more info.
8585
auto_register_static = [
86-
"auto_register",
87-
"bevy_reflect_derive/auto_register_static",
86+
"auto_register",
87+
"bevy_reflect_derive/auto_register_static",
8888
]
8989

9090
## Enables use of browser APIs.
@@ -97,8 +97,8 @@ bevy_reflect_derive = { path = "derive", version = "0.19.0-dev" }
9797
bevy_utils = { path = "../bevy_utils", version = "0.19.0-dev", default-features = false }
9898
bevy_ptr = { path = "../bevy_ptr", version = "0.19.0-dev" }
9999
bevy_platform = { path = "../bevy_platform", version = "0.19.0-dev", default-features = false, features = [
100-
"alloc",
101-
"serialize",
100+
"alloc",
101+
"serialize",
102102
] }
103103

104104
# used by bevy-utils, but it also needs reflect impls
@@ -107,7 +107,7 @@ hashbrown = { version = "0.16.0", optional = true, default-features = false }
107107

108108
# other
109109
erased-serde = { version = "0.4", default-features = false, features = [
110-
"alloc",
110+
"alloc",
111111
] }
112112
disqualified = { version = "1.0", default-features = false }
113113
downcast-rs = { version = "2", default-features = false }
@@ -117,20 +117,20 @@ serde = { version = "1", default-features = false, features = ["alloc"] }
117117
assert_type_match = "0.1.1"
118118
smallvec = { version = "1", default-features = false, optional = true }
119119
glam = { version = "0.31.0", default-features = false, features = [
120-
"serde",
120+
"serde",
121121
], optional = true }
122122
indexmap = { version = "2.5.0", default-features = false, optional = true }
123123
petgraph = { version = "0.8", features = ["serde-1"], optional = true }
124124
smol_str = { version = "0.2.0", default-features = false, features = [
125-
"serde",
125+
"serde",
126126
], optional = true }
127127
uuid = { version = "1.13.1", default-features = false, optional = true, features = [
128-
"v4",
129-
"serde",
128+
"v4",
129+
"serde",
130130
] }
131131
variadics_please = "1.1"
132132
wgpu-types = { version = "28", features = [
133-
"serde",
133+
"serde",
134134
], optional = true, default-features = false }
135135

136136
# deps for automatic type registration

crates/bevy_reflect/src/structs.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,6 @@ impl DynamicStruct {
336336
index: usize,
337337
) -> Option<(Cow<'static, str>, Box<dyn PartialReflect>)> {
338338
let mut i: usize = 0;
339-
#[expect(
340-
clippy::incompatible_msrv,
341-
reason = "MSRV is 1.85 and `extract_if` is Stable in 1.87"
342-
)]
343339
let mut extract = self.field_names.extract_if(0..self.field_names.len(), |n| {
344340
let mut result = false;
345341
if i == index {

0 commit comments

Comments
 (0)