{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreibbkk4wvugayhle576fxwnhxyfm4e656z3bqd3lbrvownlf43d3qa",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mleofsxt2lk2"
},
"path": "/t/core-path/24233#post_2",
"publishedAt": "2026-05-08T19:42:01.000Z",
"site": "https://internals.rust-lang.org",
"tags": [
"github.com/rust-lang/rust",
"Support Windows path manipulation on other platforms",
"mathstuf"
],
"textContent": "Related: there's an issue about also making it possible to deal with Windows paths (in a lexical way) on Unix and vice versa.\n\ngithub.com/rust-lang/rust\n\n#### Support Windows path manipulation on other platforms\n\nopened 03:51AM - 15 May 19 UTC\n\n\n\n mathstuf\n \n\nT-libs-api C-feature-request A-io\n\nIt'd be nice if the facilities under `std::os` which don't use platform-specific… APIs would be available on all platforms. For example, the ability to take a bytestream and construct a Windows path out of it in order to detect whether it is a valid Windows path would be great. The use case is implementing a check for Git repositories which validates that a path is valid on Windows. The `OsStrExt` to get access to the underlying data as if it were a Windows path would be useful for this (since the check should be able to do its work on any platform). I suspect that there are other APIs that would be useful for manipulating data as another platform might see it.",
"title": "core::path::Path"
}