<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/fs, branch 1.88.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.88.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.88.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-05-03T06:45:01+00:00</updated>
<entry>
<title>Rollup merge of #139343 - cberner:filelock_wouldblock, r=workingjubilee</title>
<updated>2025-05-03T06:45:01+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-05-03T06:45:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=69e0844a460c25272711f4a6724ad1f4526aa2ca'/>
<id>urn:sha1:69e0844a460c25272711f4a6724ad1f4526aa2ca</id>
<content type='text'>
Change signature of File::try_lock and File::try_lock_shared

These methods now return Result&lt;(), TryLockError&gt; instead of Result&lt;bool, Error&gt; to make their use less errorprone

These methods are unstable under the "file_lock" feature. The related tracking issue is https://github.com/rust-lang/rust/pull/130999 and this PR changes the signatures as discussed by libs-api: https://github.com/rust-lang/rust/issues/130994#issuecomment-2770838848
</content>
</entry>
<entry>
<title>Change signature of File::try_lock and File::try_lock_shared</title>
<updated>2025-05-02T03:39:05+00:00</updated>
<author>
<name>Christopher Berner</name>
<email>me@cberner.com</email>
</author>
<published>2025-04-04T00:25:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=042a556d8d0247361ed97e5d9217bb477c487be3'/>
<id>urn:sha1:042a556d8d0247361ed97e5d9217bb477c487be3</id>
<content type='text'>
These methods now return Result&lt;(), TryLockError&gt; instead of
Result&lt;bool, Error&gt; to make their use less errorprone
</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>Rollup merge of #139450 - NobodyXu:new-api/make-fifo, r=tgross35</title>
<updated>2025-04-24T06:12:57+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-04-24T06:12:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=10732e14f4ee6e462170f883c79fb90acf3ddc2c'/>
<id>urn:sha1:10732e14f4ee6e462170f883c79fb90acf3ddc2c</id>
<content type='text'>
Impl new API `std::os::unix::fs::mkfifo` under feature `unix_fifo`

Tracking issue #139324
</content>
</entry>
<entry>
<title>Impl new API `std::os::unix::fs::mkfifo` under feature `unix_fifo`</title>
<updated>2025-04-23T13:02:52+00:00</updated>
<author>
<name>Jiahao XU</name>
<email>Jiahao_XU@outlook.com</email>
</author>
<published>2025-04-06T14:04:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=780f95dd182b1a432159430add57e9ab7cb45dd6'/>
<id>urn:sha1:780f95dd182b1a432159430add57e9ab7cb45dd6</id>
<content type='text'>
Tracking issue #139324

Signed-off-by: Jiahao XU &lt;Jiahao_XU@outlook.com&gt;
</content>
</entry>
<entry>
<title>std: Use fstatat() on illumos</title>
<updated>2025-04-18T19:44:19+00:00</updated>
<author>
<name>Patrick Mooney</name>
<email>pmooney@pfmooney.com</email>
</author>
<published>2025-04-18T01:31:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fb3cae08ab3fad5b915e04adc60b164ddd1612c4'/>
<id>urn:sha1:fb3cae08ab3fad5b915e04adc60b164ddd1612c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #139667 - 1c3t3a:remove-no-sanitize, r=m-ou-se</title>
<updated>2025-04-16T22:16:21+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-04-16T22:16:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f14e6322702c60dae7d3e702608906b437986529'/>
<id>urn:sha1:f14e6322702c60dae7d3e702608906b437986529</id>
<content type='text'>
cfi: Remove #[no_sanitize(cfi)] for extern weak functions

Previously (https://github.com/rust-lang/rust/pull/115200, https://github.com/rust-lang/rust/pull/138002), we added `#[no_sanitize(cfi)]` to all code paths that call to a weakly linked function.

In https://github.com/rust-lang/rust/pull/138349 we fixed the root cause for this issue, which means we can now remove the corresponding attributes.

r? `@rcvalle`
</content>
</entry>
<entry>
<title>Rollup merge of #139683 - ChrisDenton:windows-with-native, r=tgross35,joboet</title>
<updated>2025-04-13T11:48:18+00:00</updated>
<author>
<name>Chris Denton</name>
<email>christophersdenton@gmail.com</email>
</author>
<published>2025-04-13T11:48:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8a6d6f5ae5ac4df026f752f4ac4a3335f2c55af0'/>
<id>urn:sha1:8a6d6f5ae5ac4df026f752f4ac4a3335f2c55af0</id>
<content type='text'>
Use `with_native_path` for Windows

Ideally, each platform should use their own native path type internally. This will, for example, allow passing a UTF-16 string directly to `std::fs::File::open` and therefore avoid the need for allocating a new null-terminated wide string. However, doing that for every function and platform all at once makes for a large PR that is way too prone to breaking. So this just does some of the Windows parts.

As with the previous Unix PR (#138832) this is intended to be merely a refactoring so I've avoided anything that may require more substantial changes.
</content>
</entry>
<entry>
<title>Rollup merge of #139382 - ChrisDenton:windows-bindgen-0-61, r=Mark-Simulacrum</title>
<updated>2025-04-12T21:05:29+00:00</updated>
<author>
<name>Chris Denton</name>
<email>christophersdenton@gmail.com</email>
</author>
<published>2025-04-12T21:05:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=096369d97f108eeeef5be05f6e99f208c8916fc8'/>
<id>urn:sha1:096369d97f108eeeef5be05f6e99f208c8916fc8</id>
<content type='text'>
Update windows-bindgen to 0.61.0

This updates the automatically generate Windows API bindings. Not much changed this time:

- There's now `Default` implementations for many types, which is convenient. It does however conflict with one place where we implemented a non-zeroed default (to set the length field). But that's no big problem.
- The `--no-core` flag has been renamed to `--no-deps` to more accurately reflect its meaning (i.e. generate all necessary code without requiring additional dependencies).
- The `--link` flag allows us to set the location of the `link!` macro. Currently we use our workspace's `windows_targets` crate but we could move it into library/std using `--link`. However, this would need to be co-ordinated with the `backtrace` crate (which is a separate crate but included in std using `#[path]`). So I've left that for another time.
</content>
</entry>
<entry>
<title>Use with_native_path for Windows</title>
<updated>2025-04-11T18:02:03+00:00</updated>
<author>
<name>Chris Denton</name>
<email>chris@chrisdenton.dev</email>
</author>
<published>2025-04-11T16:15:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b613e9781a773232f81af9f61a8c8ac34b04873a'/>
<id>urn:sha1:b613e9781a773232f81af9f61a8c8ac34b04873a</id>
<content type='text'>
Also add a WCStr type
</content>
</entry>
</feed>
