Expand description
spec-core: Core library for parsing and generating Rust code from .unit.spec files
This crate provides the core functionality for the spec toolchain:
- Loading and parsing .unit.spec YAML files
- Validating specs against the JSON Schema
- Normalizing to internal representation (IR)
- Generating readable Rust code
Modules§
- export
- JSON export support for loaded spec sets.
- generator
- Generator module: Generate Rust code from ResolvedSpec
- loader
- Loader module: Read and parse .unit.spec files from the filesystem
- normalizer
- Normalizer module: Convert SpecStruct to ResolvedSpec (IR)
- passport
- Passport generation for spec units.
- pipeline
- types
- Type definitions for spec-core
- validator
- Validator module: Validate specs against JSON Schema and perform semantic checks
Enums§
- Spec
Error - Error types for spec-core operations
- Spec
Warning
Constants§
Type Aliases§
- Result
- Result type alias for spec-core operations