Skip to main content

Crate crepuscularity_core

Crate crepuscularity_core 

Source
Expand description

Shared parser, evaluator, preprocessing, and analysis primitives for Crepuscularity.

Backend crates use this crate as the source of truth for .crepus syntax. Keep changes here mirrored into macro-facing code when the same syntax should work at compile time and runtime.

Re-exports§

pub use analysis::analyze_template;
pub use analysis::classify_node;
pub use analysis::BindingMap;
pub use analysis::Fingerprint;
pub use analysis::Region;
pub use cache::DriverCache;
pub use context::TemplateContext;
pub use context::TemplateValue;
pub use diagnostics::diagnose_crepus_source;
pub use diagnostics::is_multi_component_file;
pub use diagnostics::CrepusDiagnostic;
pub use include_paths::resolve_include_path;
pub use parser::parse_component_file;
pub use parser::parse_template;
pub use parser::unescape_crepus_text_literal;
pub use parser::ComponentDef;
pub use parser::ComponentFile;
pub use parser::ComponentMeta;
pub use preprocess::google_fonts_head_markup;
pub use preprocess::merge_unique_font_families;
pub use preprocess::strip_indent_decorators;
pub use preprocess::IndentDecorators;
pub use virtual_files::lookup_virtual_file;

Modules§

analysis
Binding analysis and fingerprinting for the .crepus driver pipeline.
ast
build
cache
Turbopack-style content-addressed output cache for the .crepus driver.
context
diagnostics
eval
include_paths
Safe resolution of include paths relative to a template base_dir.
parser
preprocess
Indent-syntax decorators: top-of-file Google Font pragmas and trailing .alias class shortcuts.
tailwind
Shared Tailwind CSS v4 utility parsing (colors, spacing, sizing).
virtual_files
Lookup helpers for in-memory TemplateContext::virtual_files bundles.