Home / File/ lib.rs — tailwindcss Source File

lib.rs — tailwindcss Source File

Architecture documentation for lib.rs, a rust file in the tailwindcss codebase. 4 imports, 0 dependents.

File rust Oxide Scanner 4 imports 28 functions

Entity Profile

Dependency Diagram

graph LR
  d51c8934_ce3d_f9d0_a14e_c9711e79f4e3["lib.rs"]
  c19ca8ed_9ac9_d111_771a_c6fee00dc15c["std::path::"]
  d51c8934_ce3d_f9d0_a14e_c9711e79f4e3 --> c19ca8ed_9ac9_d111_771a_c6fee00dc15c
  12982ba0_f1c4_035f_77b4_d17752f93233["crate::walk::"]
  d51c8934_ce3d_f9d0_a14e_c9711e79f4e3 --> 12982ba0_f1c4_035f_77b4_d17752f93233
  cf006a3e_51d2_5361_1dd4_6d904d0bfa75["std::"]
  d51c8934_ce3d_f9d0_a14e_c9711e79f4e3 --> cf006a3e_51d2_5361_1dd4_6d904d0bfa75
  0d704ce4_2394_9f30_ec5c_fdbf59fc0544["std::sync::atomic::"]
  d51c8934_ce3d_f9d0_a14e_c9711e79f4e3 --> 0d704ce4_2394_9f30_ec5c_fdbf59fc0544
  style d51c8934_ce3d_f9d0_a14e_c9711e79f4e3 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

Dependencies

  • crate::walk::
  • std::
  • std::path::
  • std::sync::atomic::

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 Oxide 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: Oxide, 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