Skip to content

Add support for make jobservers #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 577 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
577 commits
Select commit Hold shift + click to select a range
66b17ff
Make sure `ParBridge` threads consume all items after `done`
cuviper Apr 21, 2021
9479a46
Use `&mut [MaybeUninit<T>]` in `iter::collect`
cuviper Apr 28, 2021
a4796cb
Add reference-validity precautions to `vec::Drain`
cuviper Apr 28, 2021
378d955
Merge #849
bors[bot] Apr 28, 2021
b9c6ef3
keep a slice in CollectResult
cuviper Apr 28, 2021
9f03edf
Reduce the scope of unsafety in Collect
cuviper Apr 28, 2021
d931c5c
Comment why CollectResult has lifetime invariance
cuviper Apr 28, 2021
aacced8
Merge #852
bors[bot] Apr 29, 2021
8815e26
Implement in_place_scope: a scope that runs its driver closure on the…
rocallahan Apr 14, 2021
6a01573
Merge #844
bors[bot] May 4, 2021
0bd4ec6
Add `in_place_scope_fifo`
cuviper May 4, 2021
3c7489e
Merge #855
bors[bot] May 15, 2021
2e13d89
Update demo dependencies
cuviper May 17, 2021
87aae49
Merge #859
bors[bot] May 17, 2021
dbc026b
Release rayon 1.5.1 / rayon-core 1.9.1
cuviper May 17, 2021
93d9091
Merge #860
bors[bot] May 18, 2021
ebcb09b
adjust the latest release date
cuviper May 18, 2021
701b052
Use in_place_scope to spawn skipped items
cuviper May 19, 2021
14dce4d
Move `slice::Chunks*` to a new submodule
cuviper May 20, 2021
89c8d47
Add `par_rchunks*` for slices
cuviper May 20, 2021
504c7cf
Merge #862
bors[bot] May 21, 2021
54f5f66
Merge #863
bors[bot] May 21, 2021
70c9a30
impl Pattern for &[char]
cuviper Jun 16, 2021
5c1dc1f
Use copied() for string bytes
cuviper Jun 16, 2021
2ca3fb0
Add tests for Pattern for &[char]
cuviper Jun 16, 2021
fea5975
Add benchmarks for Pattern for &[char]
cuviper Jun 16, 2021
f9292a7
Update dependencies for cargo audit
nyanzebra Aug 5, 2021
7413495
Set dependencies correctly
nyanzebra Aug 5, 2021
8b19088
Update ci/compat-Cargo.lock
cuviper Aug 23, 2021
906c825
Merge #876
bors[bot] Aug 23, 2021
b350365
Remove unused `lazy_static` from rayon-core
paolobarbolini Sep 1, 2021
dd08b0b
Update ci/compat-Cargo.lock
cuviper Sep 1, 2021
6cd18c0
Merge #882
bors[bot] Sep 1, 2021
f044151
Use "has_..." for custom cfg names
cuviper Sep 7, 2021
69c1f5b
Rewrite private::Try more like try_trait_v2
cuviper Sep 7, 2021
bc21190
impl private::Try for ControlFlow
cuviper Sep 7, 2021
87f004f
impl private::Try for Poll
cuviper Sep 7, 2021
3153b48
use ControlFlow::{Break, Continue};
cuviper Sep 7, 2021
d35f365
Merge #884
bors[bot] Sep 9, 2021
9563812
Add mini-section on Wasm usage
RReverser Sep 16, 2021
2991c04
Merge #886
bors[bot] Sep 17, 2021
7d2444a
Reduce the amount of generic code for ParallelExtend
cuviper Oct 7, 2021
0966084
Use the wording 'rayon job' for with_min/max_len
bluss Oct 27, 2021
7d7f018
Fix dead link (renamed function)
fzyzcjy Oct 28, 2021
1461a5b
Update len.rs
fzyzcjy Oct 28, 2021
f45eee8
Merge #898
bors[bot] Oct 28, 2021
78a45ee
Use SPDX license format
atouchet Mar 18, 2022
f57bfa5
Merge #923
bors[bot] Mar 21, 2022
67c2565
Merge #897
bors[bot] Apr 1, 2022
5298d6a
Merge #887
bors[bot] Apr 1, 2022
1c5277f
Merge #869
bors[bot] Apr 1, 2022
0d8def7
Fix provenance issues
saethlin Jan 3, 2022
3a7f1a8
Ensure slice lifetime stays correct
saethlin Jan 5, 2022
54e3b81
Use SendPtr everywhere we Send pointers
saethlin Jan 8, 2022
14539b4
Make sure CollectConsumer's lifetime is properly bound
cuviper Apr 1, 2022
569183d
Make sure DrainProducer's lifetime is properly bound
cuviper Apr 1, 2022
736f945
Copy mergesort updates from crate alloc
cuviper Apr 1, 2022
0399ea0
Copy quicksort changes from crate core
cuviper Apr 1, 2022
e63b4eb
Merge #907
bors[bot] Apr 6, 2022
0403e2c
Upgrade rayon-demo to glium 0.31
cuviper Apr 6, 2022
d8e9059
Enforce THREADS_MAX and expose it with max_num_threads()
cuviper Apr 6, 2022
62bee7f
ci: use newer rustfmt
cuviper Apr 6, 2022
fcfd463
Merge #927
bors[bot] Apr 6, 2022
ea9b940
Merge #926
bors[bot] Apr 13, 2022
b56c6b8
Release rayon 1.5.2 / rayon-core 1.9.2
cuviper Apr 14, 2022
55a97bc
Merge #928
bors[bot] Apr 14, 2022
d210c76
Update sorting docs from the standard library
cuviper Apr 21, 2022
e47edc8
Port `slice::sort_by_cached_key` in parallel
cuviper Apr 21, 2022
e633b1e
fix some typos
cuishuang Apr 24, 2022
9dc52d7
Merge #931
bors[bot] Apr 25, 2022
e088901
Add benchmarks of key sorting
cuviper Apr 25, 2022
23bcb62
Rename probe method to _foo to avoid dead code warning
danielframpton May 7, 2022
baa4057
Capture &Registry in SpinLatch::set, not &Arc<Registry>
cuviper May 10, 2022
d1a0a60
Be more explicit with Arc::clone
cuviper May 11, 2022
c2a0c51
Release rayon-core 1.9.3
cuviper May 11, 2022
36bd58a
Convert delegate doctest to unit tests
cuviper May 12, 2022
a866566
Merge #935
bors[bot] May 12, 2022
9801de7
Merge #933
bors[bot] May 12, 2022
19bf115
Merge #934
bors[bot] May 13, 2022
137be38
Merge #932
bors[bot] May 13, 2022
d0cf4d3
Release rayon 1.5.3
cuviper May 13, 2022
5b6adbb
Merge #936
bors[bot] May 13, 2022
d7e8877
Improve Docs Readabilty
ryanrussell Jun 1, 2022
24e5f0f
Merge #939
bors[bot] Jun 1, 2022
52ce58e
Rust Comment Readability Improvements
ryanrussell Jun 3, 2022
5f22c74
Merge #940
bors[bot] Jun 9, 2022
1dfd5d9
Use a single termination latch for the registry
cuviper Jun 9, 2022
ae75d26
Remove `mem::transmute` calls from job handling
cuviper Jun 10, 2022
f95c876
Move examples to rayon-demo to trim dev-dependencies
cuviper Jun 10, 2022
6afb2d0
Merge #944
bors[bot] Jun 10, 2022
76e3a74
Merge #942 #943
bors[bot] Jun 10, 2022
a7017a8
Revert "Use a single termination latch for the registry"
cuviper Jun 10, 2022
99b1ff5
Merge #945
bors[bot] Jun 10, 2022
859ce3c
Keep heapsorts implementation equal to std
ritchie46 Jun 24, 2022
b5eef26
Merge #950
bors[bot] Jun 24, 2022
c338e3a
Fix a typo in documentation.
steffahn Jun 25, 2022
a92f91b
Merge #951
bors[bot] Jun 25, 2022
19676a1
Update to actions/checkout@v3
cuviper Jul 14, 2022
e76a6d0
Switch from actions-rs/toolchain to dtolnay/rust-toolchain
cuviper Jul 14, 2022
0aa044c
Switch from actions-rs/cargo to plain run
cuviper Jul 14, 2022
78a4095
Stop explicitly naming CI steps
cuviper Jul 14, 2022
ec04682
Merge #962
bors[bot] Jul 14, 2022
545feac
Fix clippy lints
JoeyBF Jul 11, 2022
050eaf4
Comply with MSRV 1.36
JoeyBF Jul 12, 2022
0bc7b98
demo/matmul: use a zeroed buffer
cuviper Jul 15, 2022
761e48e
demo/tsp: fix clippy::needless_lifetimes
cuviper Jul 15, 2022
f544039
demo/mergesort: use MaybeUninit buffers
cuviper Jul 15, 2022
ec31ea9
Better `#[allow]` directives
JoeyBF Jul 16, 2022
a793d60
Remove `IndexedParallelIterator::is_empty`
JoeyBF Jul 16, 2022
fea8141
Merge #960
bors[bot] Jul 18, 2022
f79c44b
Document an example with std::thread::scope
cuviper Aug 11, 2022
c00b997
Merge #966
bors[bot] Aug 11, 2022
9845910
add fold_chunks and fold_chunks_with parallel iterators
willcrozi Aug 19, 2022
3a45f97
fix rustdoc for IndexedParallelIterator::fold_chunks
willcrozi Sep 9, 2022
c074065
fix formatting for fold_chunks and fold_chunks_with iterators
willcrozi Sep 9, 2022
06948c4
rayon-demo: upgrade to glium 0.32
cuviper Sep 10, 2022
4030e8f
Merge #976
bors[bot] Sep 10, 2022
a77408a
add Debug impls for FoldChunks and FoldChunksWith
willcrozi Sep 12, 2022
5475859
basic tests for fold_chunks and fold_chunks_with iterators
willcrozi Sep 12, 2022
7348c8a
Increase MSRV
kornelski Sep 18, 2022
3e8f617
Attribute invalid input assertions to callers
kornelski Sep 18, 2022
517a2c0
cargo fmt
cuviper Sep 23, 2022
118d19b
Merge #977
bors[bot] Sep 23, 2022
1b05d34
Fix tiny typo in licensing section of readme
idanmuze Sep 23, 2022
19a4a90
Merge #979
bors[bot] Sep 23, 2022
7ffb3c6
cargo fmt
willcrozi Sep 24, 2022
09e8af5
Fix typos
kianmeng Sep 21, 2022
4d36131
Merge #978
bors[bot] Sep 24, 2022
9db39a4
Add `SendPtr::get()` to avoid disjoint captures
cuviper Jul 18, 2022
1b6eba5
Upgrade to 2021 edition
cuviper Jul 18, 2022
9ce152e
Update MSRV to 1.56
cuviper Jul 18, 2022
8c400bd
Regenerate ci/compat-Cargo.lock
cuviper Jul 18, 2022
7bbb0d6
Assume StepBy is double-ended
cuviper Jul 18, 2022
2d62dc6
Assume we have const generics
cuviper Jul 18, 2022
752eebe
Assume we have ControlFlow
cuviper Jul 18, 2022
ffcab14
Use usize::BITS
cuviper Jul 18, 2022
21bec3a
Use pointer::offset_from
cuviper Jul 18, 2022
0b52e9e
Fix clippy::manual_strip
cuviper Jul 18, 2022
a78e654
Fix clippy::mem_replace_with_default
cuviper Jul 18, 2022
2c8cd4b
Fix clippy::len_zero
cuviper Jul 18, 2022
43d339d
Fix clippy::option_as_ref_deref
cuviper Jul 18, 2022
fd01c32
Fix clippy::while_let_loop
cuviper Jul 18, 2022
6ddca69
Fix clippy::explicit_auto_deref
cuviper Jul 18, 2022
1277e02
Fix clippy::needless_borrow
cuviper Jul 18, 2022
22382f5
Allow clippy::single_char_pattern in a test
cuviper Jul 18, 2022
0bf4223
add #[track_caller] and document panics
willcrozi Sep 29, 2022
60c2f17
add fold-based benchmarks to rayon_demo::factorial
willcrozi Sep 29, 2022
4471f40
Bump minor versions for the MSRV increase
cuviper Oct 26, 2022
a2ee466
Bump ci/compat-Cargo.lock
cuviper Oct 26, 2022
37b7cc9
Clean up deprecations
cuviper Oct 26, 2022
d3d46c3
Merge #964
bors[bot] Oct 26, 2022
b1be842
Remove unused autocfg build-dep
cuviper Oct 26, 2022
2de810e
Merge #983
bors[bot] Oct 26, 2022
16b3310
make fold_chunks generic parameters consistent with fold
willcrozi Oct 29, 2022
15f4f79
make tests for fold_chunks and fold_chunks_with conditional
willcrozi Oct 29, 2022
92d61e4
additional tests for fold_chunks and fold_chunks_with
willcrozi Oct 29, 2022
468d12b
Fix the Drop implementation in case of an empty range
JustForFun88 Nov 3, 2022
3e05980
Apply suggestions from code review
cuviper Nov 4, 2022
690d0e0
Merge #986
bors[bot] Nov 4, 2022
58de50f
Make `fold_chunks` require `T: Send` up front
cuviper Nov 8, 2022
66eb8ed
`cargo fmt` for the new `fold_chunks` tests
cuviper Nov 8, 2022
274499a
Merge #970
bors[bot] Nov 8, 2022
eb6c6ef
Add ThreadPool::broadcast
cuviper Jun 10, 2022
817c4cc
Add ThreadPool::spawn_broadcast
cuviper Jun 10, 2022
c7a3172
Add Scope::spawn_broadcast
cuviper Jun 11, 2022
812ca02
Simplify calls that use the panic_handler
cuviper Jun 11, 2022
bd7b61c
Add more internal enforcement of static/scope lifetimes
cuviper Jun 11, 2022
9ef85cd
Add some documentation about *when* broadcasts run
cuviper Oct 28, 2022
911d6d0
Merge #492
bors[bot] Nov 16, 2022
a119f23
Unify `chunks`, `fold_chunks`, and `fold_chunks_with`
cuviper Nov 16, 2022
ca9b279
Merge #989
bors[bot] Nov 16, 2022
17f5b08
fix typo
TheIronBorn Nov 17, 2022
c2dfa5c
Merge #990
bors[bot] Nov 17, 2022
b0008f3
Release rayon 1.6.0 / rayon-core 1.10.0
cuviper Nov 18, 2022
4a6e9bf
Merge #991
bors[bot] Nov 18, 2022
be12615
Fix a sleep race with broadcast jobs
cuviper Nov 18, 2022
ab02e68
Release 1.10.1
cuviper Nov 19, 2022
8e48eae
Merge #992
bors[bot] Nov 19, 2022
2948c34
par_bridge: use naive locking of the Iterator
Dec 5, 2022
b144711
add the test for `folder.full()` again
Dec 6, 2022
fe6c808
cargo fmt
Dec 6, 2022
9275773
make small updates per @cuviper's suggestions
Dec 7, 2022
91cb49d
par_iter: fuse the Iterator so that we don't have to rely on the done…
Dec 7, 2022
d31d3e3
remove the done flag, its function is now done by the `fuse`
Dec 7, 2022
78feb98
Merge #996
bors[bot] Dec 8, 2022
168d5a7
Guard `par_bridge` against work-stealing recursion
cuviper Dec 8, 2022
cba48ff
Remove a debug statement
cuviper Dec 9, 2022
cdb0b43
Remove unused crossbeam-deque from rayon
cuviper Dec 9, 2022
2d177d9
Release rayon 1.6.1
cuviper Dec 9, 2022
d5e18e3
Merge #997
bors[bot] Dec 9, 2022
99fa339
Update listed version number
atouchet Dec 16, 2022
38ba27e
Merge #998
bors[bot] Dec 17, 2022
496b931
Update Readme
atouchet Dec 22, 2022
d3768cc
Update capitalization
atouchet Jan 2, 2023
7fdf0c8
Merge #999
bors[bot] Jan 3, 2023
1cacc82
chmod -x rayon-core/src/broadcast/test.rs
cuviper Jan 17, 2023
e4ba8d1
Improve rayon-core/tests/stack_overflow_crash.rs
cuviper Jan 17, 2023
0cc5912
Merge #1009
bors[bot] Jan 17, 2023
063b406
Fix ownership invalidation of saved scope panics
cuviper Jan 18, 2023
ed98853
Merge #1010
bors[bot] Jan 19, 2023
a46e1f8
Use pointers instead of `&self` in `Latch::set`
cuviper Jan 19, 2023
f880d02
Add a virtual wrapper for &Latch
cuviper Jan 20, 2023
8cee824
Merge #1011
bors[bot] Jan 21, 2023
c0c5fd1
Release rayon-core 1.10.2
cuviper Jan 22, 2023
b6cdc9d
Merge #1013
bors[bot] Jan 22, 2023
449df3b
Add TakeAny
yuyuyureka Feb 2, 2023
fd1e2a4
Add SkipAny
yuyuyureka Feb 2, 2023
9e62075
Add a fallback when threading is unsupported
cuviper Feb 15, 2023
2898830
Filter tests that need panic unwinding
cuviper Feb 17, 2023
ae79f0e
Filter tests that need true threading
cuviper Feb 17, 2023
e3dd0a5
ci: test wasm32-wasi with wasmtime
cuviper Feb 17, 2023
118a744
Add tests that broadcast does allow spawns to run
cuviper Feb 21, 2023
26c249f
Document the global fallback
cuviper Feb 21, 2023
de7f24f
Remove an unnecessary use of lazy_static
cuviper Feb 21, 2023
bf51da7
Use once_cell in rayon-demo
cuviper Feb 21, 2023
1e69790
Update ci/compat-Cargo.lock
cuviper Feb 21, 2023
94c16e0
Merge #1021
bors[bot] Feb 21, 2023
76a3030
Merge #1019
bors[bot] Feb 22, 2023
8309133
Extend the skip_any and take_any docs
cuviper Feb 23, 2023
0ceb177
Merge #1022
bors[bot] Feb 23, 2023
cf12948
derive(Clone) for SkipAny and TakeAny
cuviper Feb 23, 2023
a0d0a50
Merge #1023
bors[bot] Feb 23, 2023
68457b0
Add `ParallelIterator::take_any_while` and `skip_any_while`
cuviper Feb 24, 2023
4690a0f
Add another example for take_any_while
cuviper Feb 24, 2023
4a2de59
Merge #1024
bors[bot] Feb 24, 2023
b6cc378
Stop deriving traits on JobRef
cuviper Feb 26, 2023
1341ce3
Merge #1025
bors[bot] Feb 26, 2023
9fa93e0
Add `yield_now` and `yield_local`
cuviper Feb 26, 2023
733e93b
Use const-TLS for the `WorkerThread` pointer (MSRV 1.59)
cuviper Feb 27, 2023
34acd66
Bump MSRV to 1.59
cuviper Feb 27, 2023
3767329
Add `enum Yield` for the return status of yields
cuviper Feb 27, 2023
e1c2aad
Merge #1027
bors[bot] Feb 27, 2023
58f7b7e
Be careful comparing `job_ref.execute_fn`
cuviper Feb 27, 2023
874ff73
Fix docs for the yield `None` case on `ThreadPool`
cuviper Feb 27, 2023
7069695
Merge #1028
bors[bot] Feb 27, 2023
98077fe
Be more cautious about drain drops
cuviper Mar 2, 2023
a17bcb9
Fix inappropriate use of slice::as_mut_ptr
cuviper Mar 2, 2023
099241d
Merge #1030
bors[bot] Mar 2, 2023
322dfe8
Merge #1026
bors[bot] Mar 2, 2023
7df001d
Tweak plumbing consumer description
cuviper Mar 3, 2023
652f111
Release rayon 1.7.0 and rayon-core 1.11.0
cuviper Mar 3, 2023
6236214
Merge #1031
bors[bot] Mar 4, 2023
85e2e37
Use phantomdata in CopyOnDrop
Manishearth Mar 8, 2023
e6186ea
Merge #1032
bors[bot] Mar 9, 2023
5b167be
Add thread-local values which are preserved with jobs
Zoxc May 4, 2018
ebafbae
Add a WorkerLocal type which allow you to hold a value per Rayon work…
Zoxc May 4, 2018
9be36f8
Add deadlock detection
Zoxc May 14, 2018
1e2cf3c
Add callbacks for when threads start and stop doing work
Zoxc Dec 18, 2018
eea2043
Rename crates, update version and make clear this is not the real ray…
Zoxc Apr 25, 2018
81e2d9d
Remove use of `links` so other binaries in the same workspace can use…
Zoxc Mar 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: CI
on:
push:
branches:
- staging
- trying

jobs:

check:
name: Check (1.59.0)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.59.0
- run: cp ci/compat-Cargo.lock ./Cargo.lock
- run: cargo check --verbose --locked

test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable, beta, nightly]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo build --verbose
- run: cargo test --verbose --package rayon
- run: cargo test --verbose --package rayon-core
- run: ./ci/highlander.sh

# rayon-demo has huge dependencies, so limit its testing.
# build on stable, test on nightly (because of #[bench])
demo:
name: Demo
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, nightly]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo build --verbose --package rayon-demo
- run: cargo test --verbose --package rayon-demo
if: matrix.rust == 'nightly'

i686:
name: Test (ubuntu-latest, stable-i686)
runs-on: ubuntu-latest
steps:
- run: |
sudo apt-get update
sudo apt-get install gcc-multilib
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable-i686-unknown-linux-gnu
- run: cargo build --verbose
- run: cargo test --verbose --package rayon
- run: cargo test --verbose --package rayon-core

# wasm32-unknown-unknown builds, and even has the runtime fallback for
# unsupported threading, but we don't have an environment to execute in.
# wasm32-wasi can test the fallback by running in wasmtime.
wasm:
name: WebAssembly
runs-on: ubuntu-latest
env:
CARGO_TARGET_WASM32_WASI_RUNNER: /home/runner/.wasmtime/bin/wasmtime
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown,wasm32-wasi
- run: cargo check --verbose --target wasm32-unknown-unknown
- run: cargo check --verbose --target wasm32-wasi
- run: curl https://wasmtime.dev/install.sh -sSf | bash
- run: cargo test --verbose --target wasm32-wasi --package rayon
- run: cargo test --verbose --target wasm32-wasi --package rayon-core

fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.67.1
with:
components: rustfmt
- run: cargo fmt --all --check
24 changes: 24 additions & 0 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: master
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * 0' # 00:00 Sunday

jobs:

test:
name: Test (stable)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
override: true
- run: cargo build --verbose
- run: cargo test --verbose --package rayon
- run: cargo test --verbose --package rayon-core
- run: ./ci/highlander.sh
38 changes: 38 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: PR
on: pull_request

# Using 16MB stacks for deep test/debug recursion
env:
RUST_MIN_STACK: 16777216

jobs:

check:
name: Check (1.59.0)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.59.0
- run: cp ci/compat-Cargo.lock ./Cargo.lock
- run: cargo check --verbose --locked

test:
name: Test (stable)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --verbose
- run: cargo test --verbose --package rayon
- run: cargo test --verbose --package rayon-core
- run: ./ci/highlander.sh

fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.67.1
with:
components: rustfmt
- run: cargo fmt --all --check
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ target
*~
TAGS
*.bk
.idea
102 changes: 0 additions & 102 deletions .travis.yml

This file was deleted.

30 changes: 13 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@
[package]
name = "rayon"
# Reminder to update html_rool_url in lib.rs when updating version
version = "1.0.3"
name = "rustc-rayon"
version = "0.5.0"
authors = ["Niko Matsakis <niko@alum.mit.edu>",
"Josh Stone <cuviper@gmail.com>"]
description = "Simple work-stealing parallelism for Rust"
license = "Apache-2.0/MIT"
repository = "https://github.com/rayon-rs/rayon"
documentation = "https://docs.rs/rayon/"
description = "Simple work-stealing parallelism for Rust - fork for rustc"
rust-version = "1.59"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/rustc-rayon"
documentation = "https://docs.rs/rustc-rayon/"
readme = "README.md"
keywords = ["parallel", "thread", "concurrency", "join", "performance"]
categories = ["concurrency"]
build = "build.rs"
exclude = ["/ci/*", "/scripts/*", "/.travis.yml", "/appveyor.yml", "/bors.toml"]
exclude = ["/ci/*", "/scripts/*", "/.github/*", "/bors.toml"]

[workspace]
members = ["rayon-demo", "rayon-core", "rayon-futures"]
members = ["rayon-core"]
exclude = ["ci"]

[dependencies]
rayon-core = { version = "1.4", path = "rayon-core" }
crossbeam-deque = "0.2.0"
rayon-core = { version = "0.5", path = "rayon-core", package = "rustc-rayon-core" }

# This is a public dependency!
[dependencies.either]
version = "1.0"
default-features = false

[dev-dependencies]
docopt = "1"
lazy_static = "1"
rand = "0.5"
serde = "1"
serde_derive = "1"
rand = "0.8"
rand_xorshift = "0.3"
4 changes: 2 additions & 2 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ is an homage to that work.

## What should I do if I use `Rc`, `Cell`, `RefCell` or other non-Send-and-Sync types?

There a number of non-threadsafe types in the Rust standard library,
There are a number of non-threadsafe types in the Rust standard library,
and if your code is using them, you will not be able to combine it
with Rayon. Similarly, even if you don't have such types, but you try
to have multiple closures mutating the same state, you will get
Expand Down Expand Up @@ -86,7 +86,7 @@ tscounter.store(value + 1, Ordering::SeqCst);

You can already see that the `AtomicUsize` API is a bit more complex,
as it requires you to specify an
[ordering](http://doc.rust-lang.org/std/sync/atomic/enum.Ordering.html). (I
[ordering](https://doc.rust-lang.org/std/sync/atomic/enum.Ordering.html). (I
won't go into the details on ordering here, but suffice to say that if
you don't know what an ordering is, and probably even if you do, you
should use `Ordering::SeqCst`.) The danger in this parallel version of
Expand Down
Loading