rust-lang / rust-lang/rust

Tracking Issue for `core_io_borrowed_buf`

Open
#117,693 55 comments 14 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-tracking-issue T-libs
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

View all comments

Feature gate: #![feature(core_io_borrowed_buf)]

This is a tracking issue for an MVP of core::io, which contains an OS-independent subset of std::io.

Public API

The initial API of this module consists of BorrowedBuf and BorrowedCursor, which were previously only available in std.

Steps / History

See also: https://github.com/rust-lang/rust/issues/78485

Unresolved Questions
  • Now that it's generic (#149749) double-check any bounds we might want before stabilization
    • For example, it used to always be Debug (which was easy since u8: Debug), but for generic do we want always-Debug or only for T: Debug?

Naming:

Documentation:

API confusion:

Variance:

Trait and bounds:

Other:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the core::io feature gate and the public APIs BorrowedBuf and BorrowedCursor, then read the unresolved questions and linked discussion. The tracking issue lists naming, documentation, API, variance, and trait concerns that require resolution before stabilization. Done means the remaining decisions are resolved and a stabilization PR is prepared.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.