Expand description
§use-pattern
Feature-gated facade crate for the RustUse pattern helper workspace.
Warning: versions below
0.3.0are experimental and may change as the workspace matures.
§Example Usage
[dependencies]
use-pattern = { version = "0.1", default-features = false, features = ["glob", "wildcard"] }use use_pattern::glob::is_glob_pattern;
use use_pattern::wildcard::wildcard_matches;
assert!(is_glob_pattern("src/**/*.rs"));
assert!(wildcard_matches("data-*.json", "data-01.json"));§Scope
- opt-in access to the focused
use-match,use-regex,use-glob, anduse-wildcardcrates - a small facade surface that does not force unused helpers into downstream builds
- straightforward reexports that mirror the concrete crate boundaries
§Non-Goals
- adding major new behavior beyond the focused crates
- hiding the underlying crate boundaries behind a framework-style abstraction
- replacing dedicated pattern, parsing, or filesystem ecosystems
§License
Licensed under either of the following, at your option:
- MIT License
- Apache License, Version 2.0
Re-exports§
pub use use_glob;pub use use_glob as glob;pub use use_match;pub use use_match as matchers;pub use use_regex;pub use use_regex as regex;pub use use_wildcard;pub use use_wildcard as wildcard;