Crate jacquard_lexgen

Crate jacquard_lexgen 

Source
Expand description

§Lexicon fetching and code generation binaries for Jacquard

This crate provides the tooling for fetching lexicon schemas from various sources and generating Rust code from them.

§Binaries

§lex-fetch

Downloads lexicons from configured sources and runs the code generation pipeline:

cargo run -p jacquard-lexgen --bin lex-fetch

Configuration lives in lexicons.kdl at the workspace root.

§jacquard-codegen

Runs code generation on a local directory of lexicons:

cargo run -p jacquard-lexgen --bin jacquard-codegen -- \
    -i ./lexicons \
    -o ./crates/jacquard-api/src

§Modules

  • fetch - Ingests lexicons from git, atproto, http fetch, and other sources
  • cli - CLI argument parsing utilities
  • schema_extraction - Extract lexicon schemas from Rust types via inventory (link-time discovery)
  • schema_discovery - Discover schemas by scanning workspace source files (no linking required)

Re-exports§

pub use fetch::Config;
pub use fetch::Fetcher;

Modules§

cli
fetch
schema_discovery
Workspace Schema Discovery
schema_extraction
Schema Extraction