lib.rs — tailwindcss Source File
Architecture documentation for lib.rs, a rust file in the tailwindcss codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 45d3637d_63b6_933b_072c_47e0aeaa39a0["lib.rs"] 9aa9da3e_3665_ff27_83fa_c1285f8c5a05["std::path::"] 45d3637d_63b6_933b_072c_47e0aeaa39a0 --> 9aa9da3e_3665_ff27_83fa_c1285f8c5a05 dc12720a_5c61_8a74_769f_a9d24d5a0c3c["crate::walk::"] 45d3637d_63b6_933b_072c_47e0aeaa39a0 --> dc12720a_5c61_8a74_769f_a9d24d5a0c3c 148a0379_62c6_86e3_d9b3_de1fdebd7cfb["std::"] 45d3637d_63b6_933b_072c_47e0aeaa39a0 --> 148a0379_62c6_86e3_d9b3_de1fdebd7cfb 27431e5f_334c_f607_7904_4653979188d7["std::sync::atomic::"] 45d3637d_63b6_933b_072c_47e0aeaa39a0 --> 27431e5f_334c_f607_7904_4653979188d7 style 45d3637d_63b6_933b_072c_47e0aeaa39a0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/*!
The ignore crate provides a fast recursive directory iterator that respects
various filters such as globs, file types and `.gitignore` files. The precise
matching rules and precedence is explained in the documentation for
`WalkBuilder`.
Secondarily, this crate exposes gitignore and file type matchers for use cases
that demand more fine-grained control.
# Example
This example shows the most basic usage of this crate. This code will
recursively traverse the current directory while automatically filtering out
files and directories according to ignore globs found in files like
`.ignore` and `.gitignore`:
```rust,no_run
use ignore::Walk;
for result in Walk::new("./") {
// Each item yielded by the iterator is either a directory entry or an
// error, so either print the path or the error.
match result {
Ok(entry) => println!("{}", entry.path().display()),
Err(err) => println!("ERROR: {}", err),
}
}
```
# Example: advanced
By default, the recursive directory iterator will ignore hidden files and
directories. This can be disabled by building the iterator with `WalkBuilder`:
```rust,no_run
use ignore::WalkBuilder;
for result in WalkBuilder::new("./").hidden(false).build() {
println!("{:?}", result);
}
```
See the documentation for `WalkBuilder` for many other options.
*/
#![deny(missing_docs)]
use std::path::{Path, PathBuf};
pub use crate::walk::{
DirEntry, ParallelVisitor, ParallelVisitorBuilder, Walk, WalkBuilder, WalkParallel, WalkState,
};
mod default_types;
mod dir;
pub mod gitignore;
pub mod overrides;
mod pathutil;
pub mod types;
// ... (501 more lines)
Domain
Subdomains
Functions
Dependencies
- crate::walk::
- std::
- std::path::
- std::sync::atomic::
Source
Frequently Asked Questions
What does lib.rs do?
lib.rs is a source file in the tailwindcss codebase, written in rust. It belongs to the OxideEngine domain, Scanner subdomain.
What functions are defined in lib.rs?
lib.rs defines 28 function(s): clone, depth, description, drop, fmt, from, from_walkdir, inner, into_error_option, into_io_error, and 18 more.
What does lib.rs depend on?
lib.rs imports 4 module(s): crate::walk::, std::, std::path::, std::sync::atomic::.
Where is lib.rs in the architecture?
lib.rs is located at crates/ignore/src/lib.rs (domain: OxideEngine, subdomain: Scanner, directory: crates/ignore/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free