Home / Function/ build() — tailwindcss Function Reference

build() — tailwindcss Function Reference

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

Function rust Oxide PreProcessors calls 1 called by 6

Entity Profile

Dependency Diagram

graph TD
  80a773f9_5f57_2f17_0199_9d45d676f37b["build()"]
  61377720_4557_3c63_7653_b6ed73e2face["gitignore.rs"]
  80a773f9_5f57_2f17_0199_9d45d676f37b -->|defined in| 61377720_4557_3c63_7653_b6ed73e2face
  cb2f2846_8ee9_4e71_0e41_554bf62917ad["new()"]
  cb2f2846_8ee9_4e71_0e41_554bf62917ad -->|calls| 80a773f9_5f57_2f17_0199_9d45d676f37b
  754854aa_e099_3833_b439_120751057d45["build_global()"]
  754854aa_e099_3833_b439_120751057d45 -->|calls| 80a773f9_5f57_2f17_0199_9d45d676f37b
  253ea400_e0d4_304c_157c_a6dad80fd874["add_line()"]
  253ea400_e0d4_304c_157c_a6dad80fd874 -->|calls| 80a773f9_5f57_2f17_0199_9d45d676f37b
  cd8e1cd4_0aec_282f_80ee_e6723b060057["parse_excludes_file()"]
  cd8e1cd4_0aec_282f_80ee_e6723b060057 -->|calls| 80a773f9_5f57_2f17_0199_9d45d676f37b
  9ee3df54_b0db_1764_9e4e_055320e83c71["gi_from_str()"]
  9ee3df54_b0db_1764_9e4e_055320e83c71 -->|calls| 80a773f9_5f57_2f17_0199_9d45d676f37b
  31475ef5_8371_db14_d713_bde9c127b678["case_insensitive()"]
  31475ef5_8371_db14_d713_bde9c127b678 -->|calls| 80a773f9_5f57_2f17_0199_9d45d676f37b
  6b69fd3b_2700_225b_a374_e64f06942c16["is_whitelist()"]
  80a773f9_5f57_2f17_0199_9d45d676f37b -->|calls| 6b69fd3b_2700_225b_a374_e64f06942c16
  style 80a773f9_5f57_2f17_0199_9d45d676f37b 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,
        })
    }

Domain

Subdomains

Frequently Asked Questions

What does build() do?
build() is a function in the tailwindcss codebase, defined in crates/ignore/src/gitignore.rs.
Where is build() defined?
build() is defined in crates/ignore/src/gitignore.rs at line 337.
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