lib.rs — tailwindcss Source File
Architecture documentation for lib.rs, a rust file in the tailwindcss codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR d43275d0_f361_9635_6e40_80b1b171c854["lib.rs"] 7b5ba88c_6776_e839_6cec_78ed5b8e817c["utf16::IndexConverter"] d43275d0_f361_9635_6e40_80b1b171c854 --> 7b5ba88c_6776_e839_6cec_78ed5b8e817c style d43275d0_f361_9635_6e40_80b1b171c854 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
use utf16::IndexConverter;
#[macro_use]
extern crate napi_derive;
mod utf16;
#[derive(Debug, Clone)]
#[napi(object)]
pub struct ChangedContent {
/// File path to the changed file
pub file: Option<String>,
/// Contents of the changed file
pub content: Option<String>,
/// File extension
pub extension: String,
}
#[derive(Debug, Clone)]
#[napi(object)]
pub struct GlobEntry {
/// Base path of the glob
pub base: String,
/// Glob pattern
pub pattern: String,
}
#[derive(Debug, Clone)]
#[napi(object)]
pub struct SourceEntry {
/// Base path of the glob
pub base: String,
/// Glob pattern
pub pattern: String,
/// Negated flag
pub negated: bool,
}
impl From<ChangedContent> for tailwindcss_oxide::ChangedContent {
fn from(changed_content: ChangedContent) -> Self {
if let Some(file) = changed_content.file {
return tailwindcss_oxide::ChangedContent::File(file.into(), changed_content.extension);
}
if let Some(contents) = changed_content.content {
return tailwindcss_oxide::ChangedContent::Content(contents, changed_content.extension);
}
unreachable!()
}
}
impl From<GlobEntry> for tailwindcss_oxide::GlobEntry {
fn from(glob: GlobEntry) -> Self {
Self {
// ... (128 more lines)
Domain
Subdomains
Functions
Dependencies
- utf16::IndexConverter
Source
Frequently Asked Questions
What does lib.rs do?
lib.rs is a source file in the tailwindcss codebase, written in rust. It belongs to the NodeBridge domain, NapiBinding subdomain.
What functions are defined in lib.rs?
lib.rs defines 8 function(s): files, from, get_candidates_with_positions, globs, new, normalized_sources, scan, scan_files.
What does lib.rs depend on?
lib.rs imports 1 module(s): utf16::IndexConverter.
Where is lib.rs in the architecture?
lib.rs is located at crates/node/src/lib.rs (domain: NodeBridge, subdomain: NapiBinding, directory: crates/node/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free