Home / Function/ build_global() — tailwindcss Function Reference

build_global() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  de77b36f_3db5_ca54_4bd7_e5f41c58192f["build_global()"]
  48997f31_0eca_cb5b_2811_f06a1bc11708["global()"]
  48997f31_0eca_cb5b_2811_f06a1bc11708 -->|calls| de77b36f_3db5_ca54_4bd7_e5f41c58192f
  e58274c7_3647_b80e_0fb2_dc3c49dd0e95["add()"]
  de77b36f_3db5_ca54_4bd7_e5f41c58192f -->|calls| e58274c7_3647_b80e_0fb2_dc3c49dd0e95
  68e416a6_57fe_bc5e_90c3_04138c3922d0["build()"]
  de77b36f_3db5_ca54_4bd7_e5f41c58192f -->|calls| 68e416a6_57fe_bc5e_90c3_04138c3922d0
  ea89f6ab_7071_247b_d90f_40bcb846cbc3["gitconfig_excludes_path()"]
  de77b36f_3db5_ca54_4bd7_e5f41c58192f -->|calls| ea89f6ab_7071_247b_d90f_40bcb846cbc3
  50f20e8a_eb44_5007_674d_776d3b0a5ef9["empty()"]
  de77b36f_3db5_ca54_4bd7_e5f41c58192f -->|calls| 50f20e8a_eb44_5007_674d_776d3b0a5ef9
  style de77b36f_3db5_ca54_4bd7_e5f41c58192f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/gitignore.rs lines 365–384

    pub fn build_global(mut self) -> (Gitignore, Option<Error>) {
        match gitconfig_excludes_path() {
            None => (Gitignore::empty(), None),
            Some(path) => {
                if !path.is_file() {
                    (Gitignore::empty(), None)
                } else {
                    let mut errs = PartialErrorBuilder::default();
                    errs.maybe_push_ignore_io(self.add(path));
                    match self.build() {
                        Ok(gi) => (gi, errs.into_error_option()),
                        Err(err) => {
                            errs.push(err);
                            (Gitignore::empty(), errs.into_error_option())
                        }
                    }
                }
            }
        }
    }

Subdomains

Called By

Frequently Asked Questions

What does build_global() do?
build_global() is a function in the tailwindcss codebase.
What does build_global() call?
build_global() calls 4 function(s): add, build, empty, gitconfig_excludes_path.
What calls build_global()?
build_global() is called by 1 function(s): global.

Analyze Your Own Codebase

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

Try Supermodel Free