Expand description
Rust source code generator
Converts an ArchitectureState into compilable Rust source that uses the
actual AimDB 0.5.x API: #[derive(RecordKey)], BufferCfg, and
AimDbBuilder::configure().
Uses [quote] for quasi-quoting token streams and prettyplease for
formatting the output into idiomatic Rust.
Functions§
- generate_
binary_ cargo_ toml - Generate
Cargo.tomlcontent for a binary crate. - generate_
cargo_ toml - Generate
Cargo.tomlcontent for a common crate. - generate_
hub_ cargo_ toml - Generate
Cargo.tomlfor the hub binary crate ({project.name}-hub). - generate_
hub_ main_ rs - Generate
src/main.rsfor the hub binary crate. - generate_
hub_ schema_ rs - Generate
src/schema.rsfor the hub binary crate. - generate_
hub_ tasks_ rs - Generate
src/tasks.rsstub for the hub binary crate. - generate_
lib_ rs - Generate
lib.rscontent for a common crate. - generate_
main_ rs - Generate
src/main.rsfor the named binary crate. - generate_
rust - Generate a complete Rust source file from architecture state.
- generate_
schema_ rs - Generate
schema.rsfor a common crate (no@generatedheader). - generate_
tasks_ rs - Generate
src/tasks.rsscaffold for the named binary crate. - to_
pascal_ case - Convert a kebab-case or snake_case string to PascalCase.
- to_
snake_ case - Convert a PascalCase string to snake_case.