sources.rs — tailwindcss Source File
Architecture documentation for sources.rs, a rust file in the tailwindcss codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 2ba1e6a3_0391_ac7e_04d2_d5d35ad686bb["sources.rs"] 91d89362_69bb_bbba_deee_46cc029b8304["super::auto_source_detection::IGNORED_CONTENT_DIRS"] 2ba1e6a3_0391_ac7e_04d2_d5d35ad686bb --> 91d89362_69bb_bbba_deee_46cc029b8304 519a317f_4a29_dab5_2bc9_5b9dbb0a9468["crate::glob::split_pattern"] 2ba1e6a3_0391_ac7e_04d2_d5d35ad686bb --> 519a317f_4a29_dab5_2bc9_5b9dbb0a9468 c745f568_cba4_79a2_f483_6b15a85dac8f["crate::GlobEntry"] 2ba1e6a3_0391_ac7e_04d2_d5d35ad686bb --> c745f568_cba4_79a2_f483_6b15a85dac8f 3f085be8_cbeb_5707_72ff_04814fbc8d18["bexpand::Expression"] 2ba1e6a3_0391_ac7e_04d2_d5d35ad686bb --> 3f085be8_cbeb_5707_72ff_04814fbc8d18 e3823f68_828a_494b_6398_2fca0b2dd428["std::path::PathBuf"] 2ba1e6a3_0391_ac7e_04d2_d5d35ad686bb --> e3823f68_828a_494b_6398_2fca0b2dd428 cb643340_ef93_71e4_4ad1_523f8656e8f4["tracing::"] 2ba1e6a3_0391_ac7e_04d2_d5d35ad686bb --> cb643340_ef93_71e4_4ad1_523f8656e8f4 style 2ba1e6a3_0391_ac7e_04d2_d5d35ad686bb 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::
Source
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 OxideEngine 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: OxideEngine, 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