Install Zincite
Use a current stable Rust toolchain to install Zincite 0.5.0:
cargo install --locked --version '=0.5.0' zinciteThe root command provides zincite fmt, zincite lint, zincite query and
zincite check.
To install the standalone commands instead, use:
cargo install --locked --version '=0.5.0' zincite-fmtcargo install --locked --version '=0.5.0' zincite-lintcargo install --locked --version '=0.5.0' zincite-querycargo install --locked --version '=0.5.0' zincite-checkBoth invocation forms use the same options, defaults and exit codes. Run
zincite --help for the command list, or a standalone command’s --help for
its options. zincite --version reports 0.5.0 and the build’s Git revision
when available. A build without Git reports just the package version.
Build from a checkout
Section titled “Build from a checkout”For contributions or the repository’s saved examples, check out the matching release and run commands from its root:
git clone --branch v0.5.0 https://github.com/zayenz/zincite.gitcd zincitecargo install --locked --path .To build a standalone command from this checkout, use its crate path, for
example cargo install --locked --path crates/zincite-query.
The query examples live in crates/zincite-query/tests/fixtures/. They also
ship in the zincite-query crate under tests/fixtures/; adjust the path when
running from that unpacked crate.
Try the commands
Section titled “Try the commands”The staffing walkthrough takes one model through formatting, lint feedback and a query that finds a shortage in its data. It includes all the input files and explains the results. Start there for a first look at what the tools do.
For a quick installation check, these stdin examples need no model files or standard library:
printf 'int: capacity=20;\n' | zincite fmtprintf 'int: capacity = 20;\n' | zincite lint --isolated --rules naming,missing-constraint-labelprintf 'capacity = 20;\n' | zincite query --stdin-filepath data.dzn 'filter(kind("assignment")) | count'The formatter prints int: capacity = 20;, the lint command produces no
warnings, and the query prints 1. All three exit 0.
Continue with formatting, linting, queries, data edits or candidate checking. Read the support limits before applying the tools to a whole project.