Skip to content

Update libc to v0.2.184#155057

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
rust-wasi-web:update-libc-0.2.184
Apr 12, 2026
Merged

Update libc to v0.2.184#155057
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
rust-wasi-web:update-libc-0.2.184

Conversation

@surban
Copy link
Copy Markdown
Contributor

@surban surban commented Apr 9, 2026

This includes the WASI SC* sysconf constants needed for thread::available_parallelism on WASI targets (#153604).

Copilot AI review requested due to automatic review settings April 9, 2026 17:01
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 9, 2026

These commits modify the library/Cargo.lock file. Unintentional changes to library/Cargo.lock can be introduced when switching branches and rebasing PRs.

If this was unintentional then you should revert the changes before this PR is merged.
Otherwise, you can ignore this comment.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Apr 9, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 9, 2026

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 8 candidates

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the libc crate dependency used by std to a newer patch release in order to pick up WASI _SC_* sysconf constants needed for thread::available_parallelism on WASI targets (per the referenced regression/fix context).

Changes:

  • Bump libc from 0.2.183 to 0.2.184 for std (non-MSVC Windows excluded as before).
  • Update library/Cargo.lock to reflect the new libc version and checksum.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
library/std/Cargo.toml Updates the libc dependency version used by std.
library/Cargo.lock Locks libc to 0.2.184 with the corresponding checksum.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Mark-Simulacrum
Copy link
Copy Markdown
Member

@bors r+ rollup=iffy

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Apr 11, 2026

📌 Commit 1209a86 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@rust-bors rust-bors bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 11, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Apr 11, 2026
… r=Mark-Simulacrum

Update libc to v0.2.184

This includes the WASI _SC_* sysconf constants needed for `thread::available_parallelism` on WASI targets (rust-lang#153604).
rust-bors bot pushed a commit that referenced this pull request Apr 11, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #155057 (Update libc to v0.2.184)
 - #154967 (Test(lib/sync): Fix `test_rwlock_max_readers` for x86 Win7)
 - #154994 (don't leak internal temporaries from `dbg!`)
 - #155130 (Stabilize feature `isolate_most_least_significant_one`)
 - #154925 (Make Box/Rc/Arc::into_array allocator-aware (and add doctest))
 - #155063 (`ty::Alias`: replace `def_id: did` with `def_id`)
rust-bors bot pushed a commit that referenced this pull request Apr 12, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #155057 (Update libc to v0.2.184)
 - #154967 (Test(lib/sync): Fix `test_rwlock_max_readers` for x86 Win7)
 - #154994 (don't leak internal temporaries from `dbg!`)
 - #155130 (Stabilize feature `isolate_most_least_significant_one`)
 - #154925 (Make Box/Rc/Arc::into_array allocator-aware (and add doctest))
 - #155063 (`ty::Alias`: replace `def_id: did` with `def_id`)
@rust-bors rust-bors bot merged commit 81578ef into rust-lang:main Apr 12, 2026
14 of 15 checks passed
@rustbot rustbot added this to the 1.97.0 milestone Apr 12, 2026
rust-timer added a commit that referenced this pull request Apr 12, 2026
Rollup merge of #155057 - rust-wasi-web:update-libc-0.2.184, r=Mark-Simulacrum

Update libc to v0.2.184

This includes the WASI _SC_* sysconf constants needed for `thread::available_parallelism` on WASI targets (#153604).
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Apr 13, 2026
…lelism-fix, r=alexcrichton

Fix thread::available_parallelism on WASI targets with threads

The refactoring in ba46286 ("std: Use more unix.rs code on WASI targets") moved WASI from its own thread module into the shared unix.rs module. However, it did not carry over the available_parallelism() implementation for WASI with threads, causing it to fall through to the unsupported catch-all. This silently regressed the support originally added in f0b7008.

Fix this by adding WASI to the standard UNIX cfg_select branch.

Depends on rust-lang#155057 (Update libc to v0.2.184).
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Apr 13, 2026
…lelism-fix, r=alexcrichton

Fix thread::available_parallelism on WASI targets with threads

The refactoring in ba46286 ("std: Use more unix.rs code on WASI targets") moved WASI from its own thread module into the shared unix.rs module. However, it did not carry over the available_parallelism() implementation for WASI with threads, causing it to fall through to the unsupported catch-all. This silently regressed the support originally added in f0b7008.

Fix this by adding WASI to the standard UNIX cfg_select branch.

Depends on rust-lang#155057 (Update libc to v0.2.184).
rust-timer added a commit that referenced this pull request Apr 13, 2026
Rollup merge of #153604 - rust-wasi-web:wasi-available-parallelism-fix, r=alexcrichton

Fix thread::available_parallelism on WASI targets with threads

The refactoring in ba46286 ("std: Use more unix.rs code on WASI targets") moved WASI from its own thread module into the shared unix.rs module. However, it did not carry over the available_parallelism() implementation for WASI with threads, causing it to fall through to the unsupported catch-all. This silently regressed the support originally added in f0b7008.

Fix this by adding WASI to the standard UNIX cfg_select branch.

Depends on #155057 (Update libc to v0.2.184).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants