Home / File/ walk.rs — tailwindcss Source File

walk.rs — tailwindcss Source File

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

File rust Oxide Scanner 16 imports 106 functions 2 classes

Entity Profile

Dependency Diagram

graph LR
  8031325b_dcd2_8c49_70e7_46191ce03a79["walk.rs"]
  af544fa1_0cd0_9f5f_0f77_cf96bae3000b["self::DirEntryInner::*"]
  8031325b_dcd2_8c49_70e7_46191ce03a79 --> af544fa1_0cd0_9f5f_0f77_cf96bae3000b
  30bf0f52_0780_5ef3_aec5_213150847fc1["super::"]
  8031325b_dcd2_8c49_70e7_46191ce03a79 --> 30bf0f52_0780_5ef3_aec5_213150847fc1
  4d2fa652_7253_642f_5ed4_ff265cc35296["super::device_num"]
  8031325b_dcd2_8c49_70e7_46191ce03a79 --> 4d2fa652_7253_642f_5ed4_ff265cc35296
  cf006a3e_51d2_5361_1dd4_6d904d0bfa75["std::"]
  8031325b_dcd2_8c49_70e7_46191ce03a79 --> cf006a3e_51d2_5361_1dd4_6d904d0bfa75
  81ece9c1_054c_504a_d7a0_4d0590ba157c["crate::"]
  8031325b_dcd2_8c49_70e7_46191ce03a79 --> 81ece9c1_054c_504a_d7a0_4d0590ba157c
  066bb233_e3db_56fa_4a24_84be278c4b71["walkdir::DirEntryExt"]
  8031325b_dcd2_8c49_70e7_46191ce03a79 --> 066bb233_e3db_56fa_4a24_84be278c4b71
  03b0d22e_e2fe_755d_78bf_ca308fb6055a["std::os::unix::fs::DirEntryExt"]
  8031325b_dcd2_8c49_70e7_46191ce03a79 --> 03b0d22e_e2fe_755d_78bf_ca308fb6055a
  e178c8a0_df91_404e_d06b_9e8185f6c0e3["std::os::unix::fs::MetadataExt"]
  8031325b_dcd2_8c49_70e7_46191ce03a79 --> e178c8a0_df91_404e_d06b_9e8185f6c0e3
  3e501f2c_2779_46f9_ecd9_b62689cf8757["winapi_util::"]
  8031325b_dcd2_8c49_70e7_46191ce03a79 --> 3e501f2c_2779_46f9_ecd9_b62689cf8757
  1199dd1e_c8ff_9b4d_35a8_ed6308faafa4["std::ffi::OsStr"]
  8031325b_dcd2_8c49_70e7_46191ce03a79 --> 1199dd1e_c8ff_9b4d_35a8_ed6308faafa4
  1494a7b3_ac0f_4ea9_479d_cdc267fc8781["std::fs::"]
  8031325b_dcd2_8c49_70e7_46191ce03a79 --> 1494a7b3_ac0f_4ea9_479d_cdc267fc8781
  ed17cc9e_feb3_6f37_b8a8_02a5e71e4e24["std::io::Write"]
  8031325b_dcd2_8c49_70e7_46191ce03a79 --> ed17cc9e_feb3_6f37_b8a8_02a5e71e4e24
  a6aeab6e_a19a_3d64_9b92_03c5c0f78918["std::path::Path"]
  8031325b_dcd2_8c49_70e7_46191ce03a79 --> a6aeab6e_a19a_3d64_9b92_03c5c0f78918
  6dd0c2e1_92ac_d69d_80d5_8bf47fd7f551["std::sync::"]
  8031325b_dcd2_8c49_70e7_46191ce03a79 --> 6dd0c2e1_92ac_d69d_80d5_8bf47fd7f551
  style 8031325b_dcd2_8c49_70e7_46191ce03a79 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

use std::{
    cmp::Ordering,
    ffi::OsStr,
    fs::{self, FileType, Metadata},
    io,
    path::{Path, PathBuf},
    sync::atomic::{AtomicBool, AtomicUsize, Ordering as AtomicOrdering},
    sync::{Arc, OnceLock},
};

use {
    crossbeam_deque::{Stealer, Worker as Deque},
    same_file::Handle,
    walkdir::WalkDir,
};

use crate::{
    Error, PartialErrorBuilder,
    dir::{Ignore, IgnoreBuilder},
    gitignore::{Gitignore, GitignoreBuilder},
    overrides::Override,
    types::Types,
};

/// A directory entry with a possible error attached.
///
/// The error typically refers to a problem parsing ignore files in a
/// particular directory.
#[derive(Clone, Debug)]
pub struct DirEntry {
    dent: DirEntryInner,
    err: Option<Error>,
}

impl DirEntry {
    /// The full path that this entry represents.
    pub fn path(&self) -> &Path {
        self.dent.path()
    }

    /// The full path that this entry represents.
    /// Analogous to [`DirEntry::path`], but moves ownership of the path.
    pub fn into_path(self) -> PathBuf {
        self.dent.into_path()
    }

    /// Whether this entry corresponds to a symbolic link or not.
    pub fn path_is_symlink(&self) -> bool {
        self.dent.path_is_symlink()
    }

    /// Returns true if and only if this entry corresponds to stdin.
    ///
    /// i.e., The entry has depth 0 and its file name is `-`.
    pub fn is_stdin(&self) -> bool {
        self.dent.is_stdin()
    }

    /// Return the metadata for the file that this entry points to.
    pub fn metadata(&self) -> Result<Metadata, Error> {
// ... (2422 more lines)

Domain

Subdomains

Dependencies

  • crate::
  • crate::tests::TempDir
  • self::DirEntryInner::*
  • std::
  • std::ffi::OsStr
  • std::fs::
  • std::io::Write
  • std::os::unix::fs::DirEntryExt
  • std::os::unix::fs::MetadataExt
  • std::os::unix::fs::symlink
  • std::path::Path
  • std::sync::
  • super::
  • super::device_num
  • walkdir::DirEntryExt
  • winapi_util::

Frequently Asked Questions

What does walk.rs do?
walk.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 walk.rs?
walk.rs defines 106 function(s): Fn, FnMut, activate_worker, add, add_custom_ignore_filename, add_gitignore, add_ignore, add_parents, assert_paths, build, and 96 more.
What does walk.rs depend on?
walk.rs imports 16 module(s): crate::, crate::tests::TempDir, self::DirEntryInner::*, std::, std::ffi::OsStr, std::fs::, std::io::Write, std::os::unix::fs::DirEntryExt, and 8 more.
Where is walk.rs in the architecture?
walk.rs is located at crates/ignore/src/walk.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