rust-lang / rust-lang/glob

build a Paths from a Pattern

Open
#148 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
595
Forks
93
PR merge metrics
No merged PRs in 30d

Description

It seems to be that there is no way to build a Paths from a Pattern,
except by passing the underlying string of the Pattern to glob, which means reparsing it.

It would be nice if Patterns had a method (named paths ?) that produced a Paths,
such that glob::glob(txt)? would be a shortcut for glob::Pattern::new(txt).paths().

Contributor guide

No contributing guide indexed for this repository

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 by reading the existing Pattern, Paths, and glob entry points to understand how patterns and path iteration are currently constructed. Add the requested Pattern-to-Paths convenience API so the glob shortcut can reuse the parsed Pattern, and verify that it avoids reparsing the underlying string.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.