Skip to content
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

Remove num_cpus crate from the dependency #277

Merged
merged 2 commits into from
Jun 6, 2023
Merged

Conversation

tatsuya6502
Copy link
Member

This PR replaces num_cpus::get() with std::thread::available_concurrency() introduced in Rust 1.59.0. (Fixes #257)

NOTE: available_concurrency() requires Rust 1.64.0 or newer to work reliably in some Linux container environment. See the descriptions of #257.

- Replace `num_cpus::get()` with `std::thread::available_concurrency()` introduced
  in Rust 1.59.0.
- NOTE: `available_concurrency()` requires Rust 1.64.0 or newer to work reliably in
  some Linux container environment. #257
@tatsuya6502 tatsuya6502 self-assigned this Jun 6, 2023
@tatsuya6502 tatsuya6502 added this to the v0.11.2 milestone Jun 6, 2023
Copy link
Member Author

@tatsuya6502 tatsuya6502 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging.

@tatsuya6502 tatsuya6502 added this pull request to the merge queue Jun 6, 2023
Merged via the queue into master with commit 0c04d55 Jun 6, 2023
@tatsuya6502 tatsuya6502 deleted the remove-num-cpus branch June 6, 2023 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use std::thread::available_parallelism() instead of num_cpus dependency
1 participant