Skip to content

Commit

Permalink
Fix target conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Dec 24, 2023
1 parent 0fe0bbc commit f05faf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rayon-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ categories = ["concurrency"]
crossbeam-deque = "0.8.1"
crossbeam-utils = "0.8.0"

[target.'cfg(target = "wasm32-unknown-unknown")'.dependencies]
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
wasm_sync = "0.1.0"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions rayon-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ pub use self::thread_pool::current_thread_index;
pub use self::thread_pool::ThreadPool;
pub use self::thread_pool::{yield_local, yield_now, Yield};

#[cfg(not(target = "wasm32-unknown-unknown"))]
#[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))]
pub use std::sync;
#[cfg(target = "wasm32-unknown-unknown")]
#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
pub use wasm_sync as sync;

use self::registry::{CustomSpawn, DefaultSpawn, ThreadSpawn};
Expand Down

0 comments on commit f05faf6

Please sign in to comment.