conseqa-viz front end is a pre-built React bundle embedded directly in the binary at compile time.
Prerequisites
You need a stable Rust toolchain with Cargo. The recommended way to install one is via rustup:Cargo.toml specifies edition = "2024", so use Rust 1.85 or later.
Build from source
Clone the repository and run a release build:target/release/:
Add to PATH
To invoke either tool from any directory without a full path, add the release directory to yourPATH. Add this line to your shell profile (.bashrc, .zshrc, or equivalent):
source ~/.zshrc (adjust for your shell), then confirm the tools are available:
Verify the installation
Run each tool with--help to confirm it is reachable and working:
A note on the visualization front end
conseqa-viz embeds a pre-built React + TypeScript bundle at compile time using Rust’s include_str! macro. The compiled binary is fully self-contained: it requires no Node.js, no npm, and no network access at runtime.
If you modify the front end source in
viz/, you must rebuild the bundle and commit the result before the changes take effect in conseqa-viz. See the viz/ directory for build instructions (npm run build produces viz/dist/index.html, which the Rust build then embeds).vite-plugin-singlefile. When conseqa-viz generates output, it injects the page data — title, model, derived graph, and report — as window.CONSEQA into that bundle.
Troubleshooting
Build fails with 'edition 2024 is not supported'
Build fails with 'edition 2024 is not supported'
Upgrade your Rust toolchain. Conseqa requires Rust 1.85 or later, which introduced the 2024 edition.
'conseqa: command not found' after adding to PATH
'conseqa: command not found' after adding to PATH
Make sure you sourced your shell profile after editing it, and that the path you added points to the If the file is not there, the build may not have completed successfully. Re-run
target/release directory inside the cloned repository — not to the repository root.cargo build --release and check for errors.'cannot read model.yaml: No such file or directory'
'cannot read model.yaml: No such file or directory'
conseqa and conseqa-viz resolve the model path relative to the working directory. Make sure you are in the right directory or provide an absolute path: