Crate grimoire_css_lib

Source
Expand description

The main library module that orchestrates the core functionality of the Grimoire CSS system.

This module provides:

  • A pure function start that executes the core logic of Grimoire CSS without printing or side effects.
  • A convenience function start_as_cli for CLI usage. It includes logging, timing, and user-facing output (spinners, styled text), but is not idiomatic for a typical Rust library because it introduces side effects and depends on console/UI crates. Use it only if you specifically want the same CLI behavior outside of the main binary (e.g. in a Node.js wrapper).

Modules§

  • The core module contains the essential building blocks of the Grimoire CSS system.

Statics§

Functions§

  • Public function to read the saved messages from the buffer. This function is accessible from the main.rs (or any other crate/binary) for reading the buffer content.
  • Starts the Grimoire CSS system based on the given mode, without performing any CLI-specific side effects.
  • A convenience function that simulates CLI behavior (timing, logging, spinner) but is placed in the library crate to avoid duplicating code in multiple binaries or wrappers.