<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/path, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-07-03T07:51:06+00:00</updated>
<entry>
<title>setup CI and tidy to use typos for spellchecking and fix few typos</title>
<updated>2025-07-03T07:51:06+00:00</updated>
<author>
<name>klensy</name>
<email>klensy@users.noreply.github.com</email>
</author>
<published>2024-12-07T10:51:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c76d032f0144b650a438ee1efba89c475e0b115b'/>
<id>urn:sha1:c76d032f0144b650a438ee1efba89c475e0b115b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Handle win32 separator &amp; prefixes for cygwin paths</title>
<updated>2025-06-16T01:24:07+00:00</updated>
<author>
<name>王宇逸</name>
<email>Strawberry_Str@hotmail.com</email>
</author>
<published>2025-06-01T15:12:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3cb0cba054d9d1871f3a10345d5c30cfc7ac214c'/>
<id>urn:sha1:3cb0cba054d9d1871f3a10345d5c30cfc7ac214c</id>
<content type='text'>
</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>
<entry>
<title>Avoid verbatim paths in Command::current_dir</title>
<updated>2025-04-09T01:32:19+00:00</updated>
<author>
<name>Chris Denton</name>
<email>chris@chrisdenton.dev</email>
</author>
<published>2025-03-24T18:57:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=edfc74722556c659de6fa03b23af3b9c8ceb8ac2'/>
<id>urn:sha1:edfc74722556c659de6fa03b23af3b9c8ceb8ac2</id>
<content type='text'>
If possible, we should try not to use verbatim paths in Command::current_dir. It might work but it might also break code (including some Windows APIs) that assume the current directory isn't verbatim.
</content>
</entry>
<entry>
<title>Remove has_redox_scheme</title>
<updated>2025-03-13T20:09:07+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2025-03-13T20:09:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=43499bfe2ea2b37f98d2bbfcdda05930b20c5591'/>
<id>urn:sha1:43499bfe2ea2b37f98d2bbfcdda05930b20c5591</id>
<content type='text'>
Redox OS is moving away from name:/path style paths to /scheme/name/path
style paths which are already handled correctly without has_redox_scheme.
</content>
</entry>
<entry>
<title>uefi: Implement path</title>
<updated>2025-01-16T04:49:22+00:00</updated>
<author>
<name>Ayush Singh</name>
<email>ayush@beagleboard.org</email>
</author>
<published>2025-01-14T06:10:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c1790b14bcd62df7bccdfa7d7fbe4533dfdcdc8c'/>
<id>urn:sha1:c1790b14bcd62df7bccdfa7d7fbe4533dfdcdc8c</id>
<content type='text'>
UEFI paths can be of 4 types:
1. Absolute Shell Path: Uses shell mappings
2. Absolute Device Path: this is what we want
3: Relative root: path relative to the current root.
4: Relative

Absolute shell path can be identified with `:` and Absolute Device path
can be identified with `/`. Relative root path will start with `\`.

The algorithm is mostly taken from edk2 UEFI shell implementation and is
somewhat simple. Check for the path type in order.

For Absolute Shell path, use `EFI_SHELL-&gt;GetDevicePathFromMap` to
get a BorrowedDevicePath for the volume.

For Relative paths, we use the current working directory to construct
the new path.

BorrowedDevicePath abstraction is needed to interact with
`EFI_SHELL-&gt;GetDevicePathFromMap` which returns a Device Path Protocol
with the lifetime of UEFI shell.

Absolute Shell paths cannot exist if UEFI shell is missing.

Signed-off-by: Ayush Singh &lt;ayush@beagleboard.org&gt;
</content>
</entry>
<entry>
<title>path: Move is_absolute check to sys::path</title>
<updated>2025-01-13T06:22:03+00:00</updated>
<author>
<name>Ayush Singh</name>
<email>ayush@beagleboard.org</email>
</author>
<published>2025-01-12T12:43:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1107382a18c7e70d6c76584ee2c1bcfbfb5115f9'/>
<id>urn:sha1:1107382a18c7e70d6c76584ee2c1bcfbfb5115f9</id>
<content type='text'>
I am working on fs support for UEFI [0], which similar to windows has prefix
components, but is not quite same as Windows. It also seems that Prefix
is tied closely to Windows and cannot really be extended [1].

This PR just tries to remove coupling between Prefix and absolute path
checking to allow platforms to provide there own implementation to check
if a path is absolute or not.

I am not sure if any platform other than windows currently uses Prefix,
so I have kept the path.prefix().is_some() check in most cases.

[0]: https://github.com/rust-lang/rust/pull/135368
[1]: https://github.com/rust-lang/rust/issues/52331#issuecomment-2492796137

Signed-off-by: Ayush Singh &lt;ayush@beagleboard.org&gt;
</content>
</entry>
<entry>
<title>std: update internal uses of `io::const_error!`</title>
<updated>2024-11-26T17:38:24+00:00</updated>
<author>
<name>joboet</name>
<email>jonasboettiger@icloud.com</email>
</author>
<published>2024-11-25T12:49:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c14d137bfc5133f5a38fad2f58e30fed9c47ffe2'/>
<id>urn:sha1:c14d137bfc5133f5a38fad2f58e30fed9c47ffe2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>library: consistently use American spelling for 'behavior'</title>
<updated>2024-10-25T10:02:47+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2024-10-25T10:01:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=854e3c43e005c992542a80bea9bbe16230470362'/>
<id>urn:sha1:854e3c43e005c992542a80bea9bbe16230470362</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</content>
</entry>
</feed>
