build() — tailwindcss Function Reference
Architecture documentation for the build() function in walk.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 9d894c7c_30e0_c74a_cfb3_a68f088d0048["build()"] 58d7e4fa_9d54_5bcd_7f67_efc560bdad7c["build_parallel()"] 58d7e4fa_9d54_5bcd_7f67_efc560bdad7c -->|calls| 9d894c7c_30e0_c74a_cfb3_a68f088d0048 f4964aa2_53a1_cae0_78b3_2ff3218faae7["add_ignore()"] f4964aa2_53a1_cae0_78b3_2ff3218faae7 -->|calls| 9d894c7c_30e0_c74a_cfb3_a68f088d0048 9d008946_dd0c_30f6_6e0f_2936d75b0310["new()"] 9d008946_dd0c_30f6_6e0f_2936d75b0310 -->|calls| 9d894c7c_30e0_c74a_cfb3_a68f088d0048 d73ec138_1801_f65e_9f01_1730eee813b7["visit()"] d73ec138_1801_f65e_9f01_1730eee813b7 -->|calls| 9d894c7c_30e0_c74a_cfb3_a68f088d0048 03862f32_0dc6_e03e_d1bf_0af2da8f3748["walk_collect()"] 03862f32_0dc6_e03e_d1bf_0af2da8f3748 -->|calls| 9d894c7c_30e0_c74a_cfb3_a68f088d0048 4c2178e2_14f9_099e_48a6_e50df74fad4e["first_path_not_symlink()"] 4c2178e2_14f9_099e_48a6_e50df74fad4e -->|calls| 9d894c7c_30e0_c74a_cfb3_a68f088d0048 c81d27cd_cad5_fc47_4e0f_696d4392faff["follow_links()"] 9d894c7c_30e0_c74a_cfb3_a68f088d0048 -->|calls| c81d27cd_cad5_fc47_4e0f_696d4392faff 93d52820_2935_3539_0249_3548606f967a["get_or_set_current_dir()"] 9d894c7c_30e0_c74a_cfb3_a68f088d0048 -->|calls| 93d52820_2935_3539_0249_3548606f967a 75bde911_9619_9a4c_20d1_50ec5b86261a["build()"] 9d894c7c_30e0_c74a_cfb3_a68f088d0048 -->|calls| 75bde911_9619_9a4c_20d1_50ec5b86261a 045303c3_4cc3_6dc5_845a_8eb234f08019["same_file_system()"] 9d894c7c_30e0_c74a_cfb3_a68f088d0048 -->|calls| 045303c3_4cc3_6dc5_845a_8eb234f08019 4ad2677e_56c0_f1a2_7b12_5382c0527d1c["max_depth()"] 9d894c7c_30e0_c74a_cfb3_a68f088d0048 -->|calls| 4ad2677e_56c0_f1a2_7b12_5382c0527d1c f7080f3c_9f46_2dbc_86ce_d04eb2608c59["min_depth()"] 9d894c7c_30e0_c74a_cfb3_a68f088d0048 -->|calls| f7080f3c_9f46_2dbc_86ce_d04eb2608c59 e1470fce_071c_8015_348e_f04bdd490476["file_name()"] 9d894c7c_30e0_c74a_cfb3_a68f088d0048 -->|calls| e1470fce_071c_8015_348e_f04bdd490476 9dbc0f8b_e5d8_bd69_1707_cf790a93bf6e["path()"] 9d894c7c_30e0_c74a_cfb3_a68f088d0048 -->|calls| 9dbc0f8b_e5d8_bd69_1707_cf790a93bf6e style 9d894c7c_30e0_c74a_cfb3_a68f088d0048 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/walk.rs lines 564–613
pub fn build(&self) -> Walk {
let follow_links = self.follow_links;
let max_depth = self.max_depth;
let min_depth = self.min_depth;
let sorter = self.sorter.clone();
let its = self
.paths
.iter()
.map(move |p| {
if p == Path::new("-") {
(p.to_path_buf(), None)
} else {
let mut wd = WalkDir::new(p);
wd = wd.follow_links(follow_links || p.is_file());
wd = wd.same_file_system(self.same_file_system);
if let Some(max_depth) = max_depth {
wd = wd.max_depth(max_depth);
}
if let Some(min_depth) = min_depth {
wd = wd.min_depth(min_depth);
}
if let Some(ref sorter) = sorter {
match sorter.clone() {
Sorter::ByName(cmp) => {
wd = wd.sort_by(move |a, b| cmp(a.file_name(), b.file_name()));
}
Sorter::ByPath(cmp) => {
wd = wd.sort_by(move |a, b| cmp(a.path(), b.path()));
}
}
}
(p.to_path_buf(), Some(WalkEventIter::from(wd)))
}
})
.collect::<Vec<_>>()
.into_iter();
let ig_root = self
.get_or_set_current_dir()
.map(|cwd| self.ig_builder.build_with_cwd(Some(cwd.to_path_buf())))
.unwrap_or_else(|| self.ig_builder.build());
Walk {
its,
it: None,
ig_root: ig_root.clone(),
ig: ig_root.clone(),
max_filesize: self.max_filesize,
skip: self.skip.clone(),
filter: self.filter.clone(),
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does build() do?
build() is a function in the tailwindcss codebase.
What does build() call?
build() calls 8 function(s): build, file_name, follow_links, get_or_set_current_dir, max_depth, min_depth, path, same_file_system.
What calls build()?
build() is called by 6 function(s): add_ignore, build_parallel, first_path_not_symlink, new, visit, walk_collect.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free