cdk-rsx-takt-generator
Compile format-1 .takt.json graphs into typed Rust and source maps. Handwritten
memory/vN.rs owns the complete persisted contract and derives
cdk_rsx_takt::Progress on its carrier. JSON lists stage names; payload types
come from that enum. Every prebuilt Operation node declares Input and Output.
Register graphs in build.rs with compiler-tracked source contents:
use cdk_rsx_takt_generator::{build_workflows, workflow};
fn main() -> Result<(), Box<dyn std::error::Error>> {
build_workflows([workflow!("src/workflows/local/local.takt.json")])?;
Ok(())
}
Registration resolves relative JSON modules in the inferred Rust workflow scope;
.scope(...) and .module(alias, path) handle explicit layouts and shared aliases.
In the workflow module, cdk_rsx_takt::workflow!("local") includes the generated
definition from OUT_DIR.
The takt-gen CLI provides check DOCUMENT.takt.json,
check-project --manifest-path Cargo.toml [-- CARGO-CHECK-ARGS...], and
scaffold DOCUMENT.takt.json [--scope crate::workflows::name]. Project checking
compiles Rust and maps generated errors to JSON; scaffolding preserves existing
files and leaves complete schemas and adapter choices to the author.
See Takt authoring for commands, file roles and compiler-check boundaries, and RRT for lifecycle guidance.
License
This crate is available under the ICP3V License.