walk.rs — tailwindcss Source File
Architecture documentation for walk.rs, a rust file in the tailwindcss codebase. 16 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b3ca296d_790b_9bf3_23ea_56e5c5c48565["walk.rs"] 3e845d63_e602_8d5c_8a9c_dbbdb446c0e9["self::DirEntryInner::*"] b3ca296d_790b_9bf3_23ea_56e5c5c48565 --> 3e845d63_e602_8d5c_8a9c_dbbdb446c0e9 9c36bab6_5718_da10_fc4d_44064df919d1["super::"] b3ca296d_790b_9bf3_23ea_56e5c5c48565 --> 9c36bab6_5718_da10_fc4d_44064df919d1 51ebdde6_8e77_fab2_7c85_add88bd670e6["super::device_num"] b3ca296d_790b_9bf3_23ea_56e5c5c48565 --> 51ebdde6_8e77_fab2_7c85_add88bd670e6 148a0379_62c6_86e3_d9b3_de1fdebd7cfb["std::"] b3ca296d_790b_9bf3_23ea_56e5c5c48565 --> 148a0379_62c6_86e3_d9b3_de1fdebd7cfb 9cbe6468_bd8d_8529_1ea5_0e68c0d2850e["crate::"] b3ca296d_790b_9bf3_23ea_56e5c5c48565 --> 9cbe6468_bd8d_8529_1ea5_0e68c0d2850e 38655428_055e_3bb4_e6c6_08fac9dd5aba["walkdir::DirEntryExt"] b3ca296d_790b_9bf3_23ea_56e5c5c48565 --> 38655428_055e_3bb4_e6c6_08fac9dd5aba 04347b06_7ca3_acf8_f152_26b354ef7c5b["std::os::unix::fs::DirEntryExt"] b3ca296d_790b_9bf3_23ea_56e5c5c48565 --> 04347b06_7ca3_acf8_f152_26b354ef7c5b fba78e58_6609_a22d_eab1_107271b83769["std::os::unix::fs::MetadataExt"] b3ca296d_790b_9bf3_23ea_56e5c5c48565 --> fba78e58_6609_a22d_eab1_107271b83769 f4e7d26f_d430_6f8a_73bb_b10e954e5111["winapi_util::"] b3ca296d_790b_9bf3_23ea_56e5c5c48565 --> f4e7d26f_d430_6f8a_73bb_b10e954e5111 1517e937_e1df_10e2_e2ec_e5844f61b60b["std::ffi::OsStr"] b3ca296d_790b_9bf3_23ea_56e5c5c48565 --> 1517e937_e1df_10e2_e2ec_e5844f61b60b 7786b44c_937a_3620_a76a_0a13f3154f04["std::fs::"] b3ca296d_790b_9bf3_23ea_56e5c5c48565 --> 7786b44c_937a_3620_a76a_0a13f3154f04 0c14da8c_1b4f_5f69_2892_d90952f34177["std::io::Write"] b3ca296d_790b_9bf3_23ea_56e5c5c48565 --> 0c14da8c_1b4f_5f69_2892_d90952f34177 2cad2c90_4399_255c_13ee_4577dbd9ac3a["std::path::Path"] b3ca296d_790b_9bf3_23ea_56e5c5c48565 --> 2cad2c90_4399_255c_13ee_4577dbd9ac3a 9f26c154_280e_b9ff_eb4d_f8aa53dfb322["std::sync::"] b3ca296d_790b_9bf3_23ea_56e5c5c48565 --> 9f26c154_280e_b9ff_eb4d_f8aa53dfb322 style b3ca296d_790b_9bf3_23ea_56e5c5c48565 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
Functions
- Fn()
- FnMut()
- activate_worker()
- add()
- add_custom_ignore_filename()
- add_gitignore()
- add_ignore()
- add_parents()
- assert_paths()
- build()
- build_parallel()
- check_symlink_loop()
- current_dir()
- custom_ignore()
- custom_ignore_exclusive_use()
- deactivate_worker()
- depth()
- device_num()
- error()
- explicit_ignore()
- explicit_ignore_exclusive_use()
- file_name()
- file_type()
- filter()
- filter_entry()
- first_path_not_symlink()
- fmt()
- follow_links()
- from()
- from_entry()
- from_entry_os()
- from_path()
- generate_work()
- get_or_set_current_dir()
- get_work()
- git_exclude()
- git_global()
- git_ignore()
- gitignore()
- gitignore_parent()
- hidden()
- ignore()
- ignore_case_insensitive()
- ino()
- into_path()
- is_continue()
- is_dir()
- is_quit()
- is_quit_now()
- is_same_file_system()
- is_stdin()
- is_symlink()
- max_depth()
- max_filesize()
- metadata()
- metadata_internal()
- min_depth()
- mkdirp()
- mkpaths()
- new()
- new_for_each_thread()
- new_raw()
- new_stdin()
- new_walkdir()
- next()
- no_ignores()
- no_read_permissions()
- normal_path()
- overrides()
- parents()
- path()
- path_equals()
- path_is_symlink()
- pop()
- push()
- quit_now()
- read_dir()
- recv()
- require_git()
- run()
- run_one()
- same_file_system()
- send()
- send_quit()
- should_skip_entry()
- skip_entry()
- skip_filesize()
- skip_stdout()
- sort_by_file_name()
- sort_by_file_path()
- standard_filters()
- stdout_handle()
- steal()
- symlink()
- symlink_loop()
- symlinks()
- threads()
- tmpdir()
- types()
- visit()
- walk_collect()
- walk_collect_entries_parallel()
- walk_collect_parallel()
- walkdir_is_dir()
- wfile()
- wfile_size()
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::
Source
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 OxideEngine 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: 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