Skip to content

Commit

Permalink
Ensure bevy_reflect works with no_std bevy_ecs
Browse files Browse the repository at this point in the history
  • Loading branch information
bushrat011899 committed Dec 11, 2024
1 parent c21878b commit 98837bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions crates/bevy_ecs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,9 @@ portable-atomic = [
"concurrent-queue/portable-atomic",
]


[dependencies]
bevy_ptr = { path = "../bevy_ptr", version = "0.15.0-dev" }
bevy_reflect = { path = "../bevy_reflect", version = "0.15.0-dev", default-features = false, features = [
"smallvec",
"debug",
], optional = true }
bevy_reflect = { path = "../bevy_reflect", version = "0.15.0-dev", default-features = false, optional = true }
bevy_tasks = { path = "../bevy_tasks", version = "0.15.0-dev", default-features = false }
bevy_utils = { path = "../bevy_utils", version = "0.15.0-dev", default-features = false, features = [
"alloc",
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/world/reflect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use core::any::TypeId;

use thiserror::Error;

use alloc::string::String;
use alloc::string::{String, ToString};
use bevy_reflect::{Reflect, ReflectFromPtr};

use crate::{prelude::*, world::ComponentId};
Expand Down
2 changes: 1 addition & 1 deletion tools/ci/src/commands/compile_check_no_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl Prepare for CompileCheckNoStdCommand {
commands.push(PreparedCommand::new::<Self>(
cmd!(
sh,
"cargo check -p bevy_ecs --no-default-features --features edge_executor,critical-section --target {target}"
"cargo check -p bevy_ecs --no-default-features --features edge_executor,critical-section,bevy_debug_stepping,bevy_reflect --target {target}"
),
"Please fix compiler errors in output above for bevy_ecs no_std compatibility.",
));
Expand Down

0 comments on commit 98837bf

Please sign in to comment.