Home / Function/ build() — tailwindcss Function Reference

build() — tailwindcss Function Reference

Architecture documentation for the build() function in gitignore.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  68e416a6_57fe_bc5e_90c3_04138c3922d0["build()"]
  bc289d7f_95ef_0ff2_e647_2bcb110d3196["new()"]
  bc289d7f_95ef_0ff2_e647_2bcb110d3196 -->|calls| 68e416a6_57fe_bc5e_90c3_04138c3922d0
  de77b36f_3db5_ca54_4bd7_e5f41c58192f["build_global()"]
  de77b36f_3db5_ca54_4bd7_e5f41c58192f -->|calls| 68e416a6_57fe_bc5e_90c3_04138c3922d0
  beacadb8_c4b1_66be_a831_13b5d839d638["add_line()"]
  beacadb8_c4b1_66be_a831_13b5d839d638 -->|calls| 68e416a6_57fe_bc5e_90c3_04138c3922d0
  5f89b71b_214a_6d50_c5a8_016810afc389["parse_excludes_file()"]
  5f89b71b_214a_6d50_c5a8_016810afc389 -->|calls| 68e416a6_57fe_bc5e_90c3_04138c3922d0
  f8b0c012_34e9_1bfc_8000_05d30b79d0e0["gi_from_str()"]
  f8b0c012_34e9_1bfc_8000_05d30b79d0e0 -->|calls| 68e416a6_57fe_bc5e_90c3_04138c3922d0
  79b1e608_69bd_75f8_9ae8_064afc75db6a["case_insensitive()"]
  79b1e608_69bd_75f8_9ae8_064afc75db6a -->|calls| 68e416a6_57fe_bc5e_90c3_04138c3922d0
  813d5637_f8a4_3663_d30e_795a6435a984["is_whitelist()"]
  68e416a6_57fe_bc5e_90c3_04138c3922d0 -->|calls| 813d5637_f8a4_3663_d30e_795a6435a984
  style 68e416a6_57fe_bc5e_90c3_04138c3922d0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/gitignore.rs lines 337–354

    pub fn build(&self) -> Result<Gitignore, Error> {
        let nignore = self.globs.iter().filter(|g| !g.is_whitelist()).count();
        let nwhite = self.globs.iter().filter(|g| g.is_whitelist()).count();
        let set = self.builder.build().map_err(|err| Error::Glob {
            glob: None,
            err: err.to_string(),
        })?;
        Ok(Gitignore {
            set,
            root: self.root.clone(),
            globs: self.globs.clone(),
            num_ignores: nignore as u64,
            num_whitelists: nwhite as u64,
            matches: Some(Arc::new(Pool::new(|| vec![]))),
            // CHANGED: Add a flag to have Gitignore rules that apply only to files.
            only_on_files: self.only_on_files,
        })
    }

Subdomains

Frequently Asked Questions

What does build() do?
build() is a function in the tailwindcss codebase.
What does build() call?
build() calls 1 function(s): is_whitelist.
What calls build()?
build() is called by 6 function(s): add_line, build_global, case_insensitive, gi_from_str, new, parse_excludes_file.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free