Home / Function/ new() — tailwindcss Function Reference

new() — tailwindcss Function Reference

Architecture documentation for the new() function in mod.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  4db59ffb_dcea_b3bb_bddb_1c20bbe5b635["new()"]
  878f6a0e_ea74_3ea2_ad17_27f64191747d["init_tracing()"]
  4db59ffb_dcea_b3bb_bddb_1c20bbe5b635 -->|calls| 878f6a0e_ea74_3ea2_ad17_27f64191747d
  f8682733_9224_5872_cde2_2e9fbb1e34a0["create_walker()"]
  4db59ffb_dcea_b3bb_bddb_1c20bbe5b635 -->|calls| f8682733_9224_5872_cde2_2e9fbb1e34a0
  style 4db59ffb_dcea_b3bb_bddb_1c20bbe5b635 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/scanner/mod.rs lines 155–179

    pub fn new(sources: Vec<PublicSourceEntry>) -> Self {
        init_tracing();

        if *SHOULD_TRACE {
            event!(tracing::Level::INFO, "Provided sources:");
            for source in &sources {
                event!(tracing::Level::INFO, "Source: {:?}", source);
            }
        }

        let sources = Sources::new(public_source_entries_to_private_source_entries(sources));

        if *SHOULD_TRACE {
            event!(tracing::Level::INFO, "Optimized sources:");
            for source in sources.iter() {
                event!(tracing::Level::INFO, "Source: {:?}", source);
            }
        }

        Self {
            sources: sources.clone(),
            walker: create_walker(sources),
            ..Default::default()
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does new() do?
new() is a function in the tailwindcss codebase.
What does new() call?
new() calls 2 function(s): create_walker, init_tracing.

Analyze Your Own Codebase

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

Try Supermodel Free