Could the num_cpus dependency be replaced by std::thread::available_parallelism?
Open
- Dominant language
- Rust
- Stars
- 35.8k
- Forks
- 846
- Avg merge
- 27m
- Merged PRs (30d)
- 3
Description
From looking at the implementation of both and the discussion on https://github.com/seanmonstar/num_cpus I get the impression that this would _not_ be a breaking change.
Contributor guide
Research direction
Start by locating the num_cpus dependency and its usage in the repository, then compare that implementation with Rust's std::thread::available_parallelism. Run the existing test suite before and after the dependency change; done means the dependency is replaced without breaking supported behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100