<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/sync/mutex, branch auto</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=auto</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=auto'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-08-16T12:28:31+00:00</updated>
<entry>
<title>library: Migrate from `cfg_if` to `cfg_select`</title>
<updated>2025-08-16T12:28:31+00:00</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2025-08-10T21:25:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1ae4a0cc3487f28b29f36afe8056535afad21e7b'/>
<id>urn:sha1:1ae4a0cc3487f28b29f36afe8056535afad21e7b</id>
<content type='text'>
Migrate the standard library from using the external `cfg_if` crate to
using the now-built-in `cfg_select` macro.

This does not yet eliminate the dependency from
`library/std/Cargo.toml`, because while the standard library itself no
longer uses `cfg_if`, it also incorporates the `backtrace` crate, which
does.

Migration assisted by the following vim command (after selecting the
full `cfg_if!` invocation):

```
'&lt;,'&gt;s/\(cfg_if::\)\?cfg_if/cfg_select/ | '&lt;,'&gt;s/^\( *\)} else {/\1}\r\1_ =&gt; {/c | '&lt;,'&gt;s/^\( *\)} else if #\[cfg(\(.*\))\] /\1}\r\1\2 =&gt; /e | '&lt;,'&gt;s/if #\[cfg(\(.*\))\] {/\1 =&gt; {/e
```

This is imperfect, but substantially accelerated the process. This
prompts for confirmation on the `} else {` since that can also appear
inside one of the arms. This also requires manual intervention to handle
any multi-line conditions.
</content>
</entry>
<entry>
<title>Add comments to diagnostic items</title>
<updated>2025-05-28T15:05:45+00:00</updated>
<author>
<name>Patrick-6</name>
<email>pamu99@gmx.ch</email>
</author>
<published>2025-05-28T15:05:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8237107d88866d4f4525f77384c653d4c80ad4df'/>
<id>urn:sha1:8237107d88866d4f4525f77384c653d4c80ad4df</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make pthread Mutex internals less public</title>
<updated>2025-05-28T13:13:38+00:00</updated>
<author>
<name>Patrick-6</name>
<email>pamu99@gmx.ch</email>
</author>
<published>2025-05-28T13:13:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=149b5b2567535af761d16ed388b653740db7a457'/>
<id>urn:sha1:149b5b2567535af761d16ed388b653740db7a457</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add diagnostic items to sys::Mutex</title>
<updated>2025-05-28T13:12:56+00:00</updated>
<author>
<name>Patrick-6</name>
<email>pamu99@gmx.ch</email>
</author>
<published>2025-05-28T13:12:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2e99a880e22f5a1f3800e1a26828b188204d037e'/>
<id>urn:sha1:2e99a880e22f5a1f3800e1a26828b188204d037e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>collect all Fuchsia bindings into the `fuchsia` module</title>
<updated>2025-05-05T10:16:40+00:00</updated>
<author>
<name>joboet</name>
<email>jonasboettiger@icloud.com</email>
</author>
<published>2025-05-05T10:16:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7845c011dd3bdfb5eaa461476f5f7d0f3aa16dfc'/>
<id>urn:sha1:7845c011dd3bdfb5eaa461476f5f7d0f3aa16dfc</id>
<content type='text'>
The Fuchsia bindings are currently spread out across multiple modules in `sys/pal/unix` leading to unnecessary duplication. This PR moves all of these definitions into `sys::pal::unix::fuchsia` and additionally:
* deduplicates the definitions
* makes the error names consistent
* marks some extern functions as safe
* removes unused items (there's no need to maintain these bindings if we're not going to use them)
* removes the documentation for the definitions (contributors should always consult the platform documentation, duplicating that here is just an extra maintenance burden)
</content>
</entry>
<entry>
<title>use generic Atomic type where possible</title>
<updated>2025-04-26T23:18:08+00:00</updated>
<author>
<name>Christopher Durham</name>
<email>cad97@cad97.com</email>
</author>
<published>2024-09-19T04:15:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4d93f6056824c338751f19356d33bb61ce818749'/>
<id>urn:sha1:4d93f6056824c338751f19356d33bb61ce818749</id>
<content type='text'>
in core/alloc/std only for now, and ignoring test files

Co-authored-by: Pavel Grigorenko &lt;GrigorenkoPV@ya.ru&gt;
</content>
</entry>
<entry>
<title>Fix `*-win7-windows-msvc` target since 26eeac1a1e9fe46ffd80dd0d3dafdd2c2a644306</title>
<updated>2025-02-19T10:05:37+00:00</updated>
<author>
<name>Li Keqing</name>
<email>auroracloud4096@gmail.com</email>
</author>
<published>2025-02-19T10:05:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=35febd7a6d57179f41cb5b4a37f9545915e4d7a5'/>
<id>urn:sha1:35febd7a6d57179f41cb5b4a37f9545915e4d7a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #128184 - joboet:refactor_pthread_sync, r=workingjubilee</title>
<updated>2024-12-01T07:15:21+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-12-01T07:15:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fe4c6e8657271b0eeb5ada90e9ab751caab52a22'/>
<id>urn:sha1:fe4c6e8657271b0eeb5ada90e9ab751caab52a22</id>
<content type='text'>
std: refactor `pthread`-based synchronization

The non-trivial code for `pthread_condvar` is duplicated across the thread parking and the `Mutex`/`Condvar` implementations. This PR moves that code into `sys::pal`, which now exposes an `unsafe` wrapper type for `pthread_mutex_t` and `pthread_condvar_t`.
</content>
</entry>
<entry>
<title>std: clarify comments about initialization</title>
<updated>2024-11-30T15:22:56+00:00</updated>
<author>
<name>joboet</name>
<email>jonasboettiger@icloud.com</email>
</author>
<published>2024-11-30T15:22:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8b2ff49ff9dd20ee417907c2e96daa9f0cd8e7c4'/>
<id>urn:sha1:8b2ff49ff9dd20ee417907c2e96daa9f0cd8e7c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>update cfgs</title>
<updated>2024-11-27T15:14:54+00:00</updated>
<author>
<name>Boxy</name>
<email>rust@boxyuwu.dev</email>
</author>
<published>2024-11-27T15:14:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=22998f078588cf479530ff93e4a66ab4bb666398'/>
<id>urn:sha1:22998f078588cf479530ff93e4a66ab4bb666398</id>
<content type='text'>
</content>
</entry>
</feed>
