Expand description
§use-glob
Practical glob pattern helpers for RustUse.
Warning: versions below
0.3.0are experimental and may change as the workspace matures.
§Example Usage
use use_glob::is_glob_pattern;
assert!(is_glob_pattern("src/**/*.rs"));§Scope
- string-based glob detection, conversion, and matching helpers
- normalized separator handling for predictable behavior
- lightweight utilities for tooling and fixtures
§Non-Goals
- filesystem walking
- gitignore engines
- shell expansion
- full platform-specific path semantics
§License
Licensed under either of the following, at your option:
- MIT License
- Apache License, Version 2.0
Structs§
Enums§
Functions§
- escape_
glob - Escapes glob metacharacters so they are treated literally.
- glob_
matches - Returns
truewhen the glob pattern matches the full input string. - glob_
to_ regex - Converts a glob pattern into an anchored regex string.
- has_
glob_ wildcards - Returns
truewhen a pattern contains any wildcard or character-class token. - has_
recursive_ glob - Returns
truewhen a pattern contains**semantics. - is_
glob_ pattern - Returns
truewhen the input contains any unescaped glob syntax. - normalize_
glob_ separators - Normalizes Windows separators to forward slashes.
- split_
glob_ segments - Splits a normalized glob pattern on
/boundaries.