Skip to content

Commit ee9a150

Browse files
hymmalice-i-cecile
andauthored
Async channel v2 (#10692)
# Objective - Update async channel to v2. ## Solution - async channel doesn't support `send_blocking` on wasm anymore. So don't compile the pipelined rendering plugin on wasm anymore. - Replaces #10405 ## Migration Guide - The `PipelinedRendering` plugin is no longer exported on wasm. If you are including it in your wasm builds you should remove it. ```rust #[cfg(all(not(target_arch = "wasm32"))] app.add_plugins(bevy_render::pipelined_rendering::PipelinedRenderingPlugin); ``` --------- Co-authored-by: Alice Cecile <[email protected]>
1 parent fcc1113 commit ee9a150

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

crates/bevy_ecs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ bevy_tasks = { path = "../bevy_tasks", version = "0.12.0" }
2121
bevy_utils = { path = "../bevy_utils", version = "0.12.0" }
2222
bevy_ecs_macros = { path = "macros", version = "0.12.0" }
2323

24-
async-channel = "1.4"
24+
async-channel = "2.1.0"
2525
thread_local = "1.1.4"
2626
fixedbitset = "0.4.2"
2727
rustc-hash = "1.1"

crates/bevy_render/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ encase = { version = "0.7", features = ["glam"] }
8888
profiling = { version = "1", features = [
8989
"profile-with-tracing",
9090
], optional = true }
91-
async-channel = "1.8"
91+
async-channel = "2.1.0"
9292

9393
[target.'cfg(target_arch = "wasm32")'.dependencies]
9494
js-sys = "0.3"

crates/bevy_render/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub mod extract_resource;
1414
pub mod globals;
1515
pub mod gpu_component_array_buffer;
1616
pub mod mesh;
17+
#[cfg(not(target_arch = "wasm32"))]
1718
pub mod pipelined_rendering;
1819
pub mod primitives;
1920
pub mod render_asset;

crates/bevy_tasks/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ multi-threaded = []
1414
[dependencies]
1515
futures-lite = "2.0.1"
1616
async-executor = "1.7.2"
17-
async-channel = "1.4.2"
17+
async-channel = "2.1.0"
1818
async-io = { version = "2.0.0", optional = true }
1919
async-task = "4.2.0"
2020
concurrent-queue = "2.0.0"

0 commit comments

Comments
 (0)