ignore-tools 0.1.0
Match paths against .gitignore-style rules, with negation and directory rules
Install
cargo add ignore-tools --registry rupm
In Ruststudio: Packages, search for ignore-tools, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.
Versions
- 0.1.0 2026-11-22
README
# ignore-tools
Match paths against .gitignore-style rules, with negation and directory rules
Add it with `rupm add ignore-tools` (or `cargo add ignore-tools --registry rupm`).
```rust
let ig = ignore_tools::Ignore::parse("target/\n*.log\n!keep.log\n");
assert!(ig.is_ignored("a/b.log", false));
assert!(!ig.is_ignored("keep.log", false));
```