Registry / utility / globset

globset

JSON →
library0.4.18rscratesunverified

Cross platform single glob and glob set matching for matching multiple glob patterns against a candidate path simultaneously.

# Cargo.toml [dependencies] globset = "0.4.18"
INSTALL
IMPORT
SIG · GLOBSET
G
globset
utilityrustv0.4.18
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GlobBuilder
use globset::GlobBuilder;

Matches a file path against a glob pattern set.

use globset::{GlobBuilder, GlobSet}; fn main() { let glob = GlobBuilder::new("*.rs").build().unwrap(); let set = GlobSet::new(vec![glob]).unwrap(); println!("{}", set.is_match("main.rs")); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.18latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources