Skip to content

Commit 57a3aec

Browse files
atlv24bushrat011899
andcommitted
Apply suggestions from code review
Co-authored-by: Zachary Harrold <[email protected]>
1 parent 860b753 commit 57a3aec

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crates/bevy_utils/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ serde = ["bevy_platform/serialize"]
2121
## Allows access to the `std` crate. Enabling this feature will prevent compilation
2222
## on `no_std` targets, but provides access to certain additional features on
2323
## supported platforms.
24-
std = ["alloc", "bevy_platform/std", "dep:thread_local"]
24+
std = ["alloc", "bevy_platform/std", "dep:thread_local", "dep:send_wrapper"]
2525

2626
## Allows access to the `alloc` crate.
2727
alloc = ["bevy_platform/alloc"]
@@ -36,7 +36,7 @@ bevy_platform = { path = "../bevy_platform", version = "0.16.0-dev", default-fea
3636
thread_local = { version = "1.0", optional = true }
3737

3838
[target.'cfg(all(target_arch = "wasm32", target_feature = "atomics"))'.dependencies]
39-
send_wrapper = "0.6.0"
39+
send_wrapper = { version = "0.6.0", optional = true }
4040

4141
[dev-dependencies]
4242
static_assertions = "1.1.0"

crates/bevy_utils/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ pub mod prelude {
2424

2525
pub mod synccell;
2626
pub mod syncunsafecell;
27+
#[cfg(feature = "std")]
2728
mod wgpu_wrapper;
2829

2930
mod default;
@@ -36,6 +37,7 @@ pub use once::OnceFlag;
3637

3738
pub use default::default;
3839

40+
#[cfg(feature = "std")]
3941
pub use wgpu_wrapper::WgpuWrapper;
4042

4143
#[cfg(feature = "std")]

0 commit comments

Comments
 (0)