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 dependency #84

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Remove num-cpus dependency #84

merged 1 commit into from
Apr 30, 2024

Conversation

notgull
Copy link
Contributor

@notgull notgull commented Apr 30, 2024

std::thread::available_parallelism() can be used since Rust v1.59.0.
It can be used in place of the num_cpus crate. This commit replaces the
usage of num_cpus for parallelism in the build script with this
function.

std::thread::available_parallelism() can be used since Rust v1.59.0.
It can be used in place of the num_cpus crate. This commit replaces the
usage of num_cpus for parallelism in the build script with this
function.

Signed-off-by: John Nunley <dev@notgull.net>
@alexforster
Copy link
Member

Love reducing deps, thanks!

@alexforster alexforster merged commit dc97350 into libbpf:master Apr 30, 2024
7 checks passed
@notgull notgull deleted the no-bix branch April 30, 2024 02:26
@alexforster alexforster self-assigned this Jul 26, 2024
@alexforster alexforster added the enhancement New feature or request label Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants