rust/library/std
Matthias Krüger fb6d10e13b
Rollup merge of #138832 - ChrisDenton:with_native_path, r=joboet
Start using `with_native_path` in `std::sys::fs`

Ideally, each platform should use their own native path type internally. This will, for example, allow passing a `CStr` directly to `std::fs::File::open` and therefore avoid the need for allocating a new null-terminated C 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 PR does some minimal refactoring which should help progress towards that goal. The changes are Unix-only and even then I avoided functions that require more changes so that this PR is just moving things around.

r? joboet
2025-03-29 21:08:12 +01:00
..
benches Fix import in bench for wasm 2025-02-12 14:44:30 -08:00
src Rollup merge of #138832 - ChrisDenton:with_native_path, r=joboet 2025-03-29 21:08:12 +01:00
tests Rollup merge of #138294 - paulmenage:test-panic-unwind, r=bjorn3 2025-03-22 21:34:36 +01:00
build.rs Rollup merge of #137621 - Berrysoft:cygwin-std, r=joboet 2025-03-17 05:47:49 -04:00
Cargo.toml Update compiler-builtins to 0.1.152 2025-03-24 00:29:21 +00:00