Home / File/ sources.rs — tailwindcss Source File

sources.rs — tailwindcss Source File

Architecture documentation for sources.rs, a rust file in the tailwindcss codebase. 6 imports, 0 dependents.

File rust Oxide Scanner 6 imports 5 functions

Entity Profile

Dependency Diagram

graph LR
  036d66a2_233f_f820_cb3b_d6cf51bcd1a6["sources.rs"]
  4c555525_2195_f749_0ff5_05d236165a89["super::auto_source_detection::IGNORED_CONTENT_DIRS"]
  036d66a2_233f_f820_cb3b_d6cf51bcd1a6 --> 4c555525_2195_f749_0ff5_05d236165a89
  5b95ad2c_ee66_763f_a8f7_5995ff5048e2["crate::glob::split_pattern"]
  036d66a2_233f_f820_cb3b_d6cf51bcd1a6 --> 5b95ad2c_ee66_763f_a8f7_5995ff5048e2
  b921cd27_b8e3_5c45_8149_e1c73da861da["crate::GlobEntry"]
  036d66a2_233f_f820_cb3b_d6cf51bcd1a6 --> b921cd27_b8e3_5c45_8149_e1c73da861da
  a58c1f8f_1153_a4f2_373d_04079a33cfff["bexpand::Expression"]
  036d66a2_233f_f820_cb3b_d6cf51bcd1a6 --> a58c1f8f_1153_a4f2_373d_04079a33cfff
  c6eac707_86ad_10ab_6a43_c1f9e507b976["std::path::PathBuf"]
  036d66a2_233f_f820_cb3b_d6cf51bcd1a6 --> c6eac707_86ad_10ab_6a43_c1f9e507b976
  198fc499_0d37_57fb_ea86_091804ceafdb["tracing::"]
  036d66a2_233f_f820_cb3b_d6cf51bcd1a6 --> 198fc499_0d37_57fb_ea86_091804ceafdb
  style 036d66a2_233f_f820_cb3b_d6cf51bcd1a6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

use crate::glob::split_pattern;
use crate::GlobEntry;
use bexpand::Expression;
use std::path::PathBuf;
use tracing::{event, Level};

use super::auto_source_detection::IGNORED_CONTENT_DIRS;

#[derive(Debug, Clone)]
pub struct PublicSourceEntry {
    /// Base path of the glob
    pub base: String,

    /// Glob pattern
    pub pattern: String,

    /// Negated flag
    pub negated: bool,
}

#[derive(Debug, Clone, PartialEq)]
pub enum SourceEntry {
    /// Auto source detection
    ///
    /// Represented by:
    ///
    /// ```css
    /// @source "src";`
    /// @source "src/**/*";`
    /// ```
    Auto { base: PathBuf },

    /// Explicit source pattern regardless of any auto source detection rules
    ///
    /// Represented by:
    ///
    /// ```css
    /// @source "src/**/*.html";`
    /// ```
    Pattern { base: PathBuf, pattern: String },

    /// Ignored pattern
    ///
    /// Represented by:
    ///
    /// ```css
    /// @source not "src";`
    /// @source not "src/**/*.html";`
    /// ```
    Ignored { base: PathBuf, pattern: String },

    /// External sources are sources outside of your git root which should not
    /// follow gitignore rules.
    ///
    /// Represented by:
    ///
    /// ```css
    /// @source "../node_modules/my-lib";`
    /// ```
    External { base: PathBuf },
// ... (250 more lines)

Domain

Subdomains

Dependencies

  • bexpand::Expression
  • crate::GlobEntry
  • crate::glob::split_pattern
  • std::path::PathBuf
  • super::auto_source_detection::IGNORED_CONTENT_DIRS
  • tracing::

Frequently Asked Questions

What does sources.rs do?
sources.rs is a source file in the tailwindcss codebase, written in rust. It belongs to the Oxide domain, Scanner subdomain.
What functions are defined in sources.rs?
sources.rs defines 5 function(s): from, iter, new, optimize, public_source_entries_to_private_source_entries.
What does sources.rs depend on?
sources.rs imports 6 module(s): bexpand::Expression, crate::GlobEntry, crate::glob::split_pattern, std::path::PathBuf, super::auto_source_detection::IGNORED_CONTENT_DIRS, tracing::.
Where is sources.rs in the architecture?
sources.rs is located at crates/oxide/src/scanner/sources.rs (domain: Oxide, subdomain: Scanner, directory: crates/oxide/src/scanner).

Analyze Your Own Codebase

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

Try Supermodel Free