libs-team
libs-team copied to clipboard
The home of the library team
All of the following designs are in use for various standard library modules: 1. `core::$module` ⊆ `alloc::$module` ⊆ `std::$module` 2. `core::$module` ∩ `alloc::$module` = ∅, (`core::$module` ∪ `alloc::$module`) ⊆ `std::$module` 3....
# Proposal Supersedes #71. This proposal is based on the discussion there and [on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/327149-t-libs-api.2Fapi-changes/topic/Reviews.20.2F.20feedback.20on.20thread.20priority.20proposal.3F) about that proposal. cc @AzureMarker @joshtriplett as they were involved in the earlier discussion /...
# Proposal ## Problem statement Tempfile is a widely used functionality, with the previous breaking change of the [`tempfile`] crate being about 7 years ago, I believe its API is...
# Proposal Add a `fn parse_line(&self) -> io::Result` method to `std::io::Stdin` to allow easier user input to be acquired without requiring deep knowledge of heap allocation, `String` and such. This...
# Proposal ## Problem statement I'd like a way to define lightweight custom I/O errors that don't require allocation. ## Motivation, use-cases 1. Offer a way forward for future better...
# Proposal ## Problem statement Currently, if you want to use `Command` to spawn a new process and create a new session, then you need to use the `pre_exec` method....
# Proposal ## Problem statement Flattening a `Option` is currently less intuitive then flattening a Option. This also comes in true if you want to flatten a `Option` to a...
# Proposal ## Problem statement To interact with `Cow`s, you generally have to match on it. There aren't many methods on the `Cow` type, compared to something like `Option` and...
# Proposal ## Problem statement This is a follow up of the problems documented in https://blog.rust-lang.org/inside-rust/2021/07/01/What-the-error-handling-project-group-is-working-towards.html#1-error-trait--panic-runtime-integration ## Motivation, use-cases Right now the standard library includes multiple interfaces to "promote" an...
# Proposal ## Problem statement `feature(ptr_metadata)` is in feature limbo. Being able to split pointers into raw pointer and metadata unlocks a lot of cool abilities in library code, but...