Tracking Issue for const path separators
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Feature gate: #![feature(const_path_separators)]
This is a tracking issue for making platform-specific path separator information available in a const context. Currently the main separator is available via std::path::MAIN_SEPARATOR, but secondary separators, if any, are not available at compile time.
Public API
// std::path
/// was pub fn
pub const fn is_separator(c: char) -> bool;
/// supplements MAIN_SEPARATOR
pub const SEPARATORS: &[char];
/// supplements MAIN_SEPARATOR_STR
pub const SEPARATORS_STR: &[&str];
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
- ACP: rust-lang/libs-team#744
- Implementation: #153196
- Final comment period (FCP)^1
- Stabilization PR
Unresolved Questions
- None yet.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the proposed std::path API and the implementation tracked in issue #153196, then read the feature lifecycle guidance linked in the stabilization section. Done means completing the final comment period and opening the stabilization PR after unresolved questions remain resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100