-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Tracking Issue for ByteStr/ByteString #134915
Copy link
Copy link
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
View all comments
Feature gate:
#![feature(bstr)]This is a tracking issue for the ByteStr/ByteString types, which represent human-readable strings that are usually, but not always, UTF-8. Unlike
&str/String, these types permit non-UTF-8 contents, making them suitable for user input, non-native filenames (asPathonly supports native filenames), and other applications that need to round-trip whatever data the user provides.This was approved in ACP rust-lang/libs-team#502 .
Public API
Steps / History
ByteStrandByteStringtypes #135073Unresolved Questions
BStr/BString, orByteStr/ByteString? The former will be more familiar to users of thebstrcrate in the ecosystem. The latter is more explicit, and avoids potential naming conflicts (making it easier to, for instance, add it to the prelude).Displayimpl use the Unicode replacement character, or do escaping like theDebugimpl?std::rangetypes, or switch to it exclusivelyFootnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩