rust/library/std/src/sys
bors 1f4681ad7a Auto merge of #91673 - ChrisDenton:path-absolute, r=Mark-Simulacrum
`std::path::absolute`

Implements #59117 by adding a `std::path::absolute` function that creates an absolute path without reading the filesystem. This is intended to be a drop-in replacement for [`std::fs::canonicalize`](https://doc.rust-lang.org/std/fs/fn.canonicalize.html) in cases where it isn't necessary to resolve symlinks. It can be used on paths that don't exist or where resolving symlinks is unwanted. It can also be used to avoid circumstances where `canonicalize` might otherwise fail.

On Windows this is a wrapper around [`GetFullPathNameW`](https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfullpathnamew). On Unix it partially implements the POSIX [pathname resolution](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13) specification, stopping just short of actually resolving symlinks.
2022-02-13 12:03:52 +00:00
..
common Set the allocation MIN_ALIGN for espidf to 4. 2022-01-13 21:09:20 +00:00
hermit make Instant::{duration_since, elapsed, sub} saturating and remove workarounds 2022-02-13 01:04:55 +01:00
itron make Instant::{duration_since, elapsed, sub} saturating and remove workarounds 2022-02-13 01:04:55 +01:00
sgx Auto merge of #91673 - ChrisDenton:path-absolute, r=Mark-Simulacrum 2022-02-13 12:03:52 +00:00
solid Fix absolute issues 2022-02-08 14:57:35 +00:00
unix Auto merge of #91673 - ChrisDenton:path-absolute, r=Mark-Simulacrum 2022-02-13 12:03:52 +00:00
unsupported make Instant::{duration_since, elapsed, sub} saturating and remove workarounds 2022-02-13 01:04:55 +01:00
wasi make Instant::{duration_since, elapsed, sub} saturating and remove workarounds 2022-02-13 01:04:55 +01:00
wasm Fix a bunch of typos 2021-12-14 16:40:43 +01:00
windows Auto merge of #91673 - ChrisDenton:path-absolute, r=Mark-Simulacrum 2022-02-13 12:03:52 +00:00
mod.rs Use target_family = "wasm" 2021-11-10 08:35:42 -08:00