rust/library/std/src/sys_common
Ed Page 8d2beb50c2 Allow access to OsStr bytes
`OsStr` has historically kept its implementation details private out of
concern for locking us into a specific encoding on Windows.

This is an alternative to #95290 which proposed specifying the encoding on Windows.  Instead, this
only specifies that for cross-platform code, `OsStr`'s encoding is a superset of UTF-8 and defines
rules for safely interacting with it

At minimum, this can greatly simplify the `os_str_bytes` crate and every
arg parser that interacts with `OsStr` directly (which is most of those
that support invalid UTF-8).
2023-03-27 22:29:44 -05:00
..
memchr Move std::memchr to sys_common 2021-05-14 03:54:46 +02:00
net Match unmatched backticks in library/ 2023-03-03 03:03:29 +01:00
once std: optimize LazyLock size 2023-01-26 16:16:03 +01:00
thread_local_key Update test. 2023-04-27 15:25:48 +02:00
thread_parking Rollup merge of #105695 - joboet:remove_generic_parker, r=m-ou-se 2023-05-03 16:42:48 -07:00
wtf8 Remove is_known_utf8 checks from more tests where it's no longer set. 2022-06-23 13:10:47 -07:00
backtrace.rs Fix #107910, Shorten backtraces in ICEs 2023-05-17 17:56:26 +08:00
fs.rs Hide Repr details from io::Error, and rework io::Error::new_const. 2022-02-04 18:47:29 -08:00
io.rs Update rand in the stdlib tests, and remove the getrandom feature from it 2023-01-04 14:52:41 -08:00
lazy_box.rs Leak pthreax_mutex_t when it's dropped while locked. 2022-06-16 12:09:12 +02:00
memchr.rs Move std::memchr to sys_common 2021-05-14 03:54:46 +02:00
mod.rs add support of RustyHermit's BSD socket layer 2023-02-24 15:30:14 +01:00
net.rs Inline socket function implementations 2023-05-01 13:27:02 +02:00
process.rs More verbose Debug implementation of std::process:Command 2022-12-27 09:50:01 +01:00
tests.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
thread.rs Relax memory ordering used in min_stack 2022-05-01 15:55:54 -07:00
thread_info.rs Merge two THREAD_INFO.with and following RefCell borrow 2021-09-16 15:24:53 +02:00
thread_local_dtor.rs refactor[std]: do not use box syntax 2023-01-17 14:08:35 +01:00
thread_local_key.rs Remove unused std::sys_common::thread_local_key::Key. 2023-04-27 15:25:48 +02:00
wstr.rs Extract WStrUnits to sys_common::wstr 2022-11-28 21:17:08 +05:30
wtf8.rs Allow access to OsStr bytes 2023-03-27 22:29:44 -05:00