-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support hierarchical settings for nested directories
- Loading branch information
1 parent
19e9eb1
commit 4bfc7af
Showing
18 changed files
with
323 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#[cfg(not(target_family = "wasm"))] | ||
use rayon::prelude::*; | ||
|
||
/// Shim that calls `par_iter` except for wasm because there's no wasm support | ||
/// in rayon yet (there is a shim to be used for the web, but it requires js | ||
/// cooperation) Unfortunately, `ParallelIterator` does not implement `Iterator` | ||
/// so the signatures diverge | ||
#[cfg(not(target_family = "wasm"))] | ||
pub fn par_iter<T: Sync>(iterable: &[T]) -> impl ParallelIterator<Item = &T> { | ||
iterable.par_iter() | ||
} | ||
|
||
#[cfg(target_family = "wasm")] | ||
pub fn par_iter<T: Sync>(iterable: &[T]) -> impl Iterator<Item = &T> { | ||
iterable.iter() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.