casey / casey/just

Could the num_cpus dependency be replaced by std::thread::available_parallelism?

Open
#2,690 3 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.