Crates.io | hugr-cli |
lib.rs | hugr-cli |
version | 0.13.3 |
source | src |
created_at | 2024-05-29 13:33:31.299227 |
updated_at | 2024-11-06 13:59:48.903957 |
description | Compiler passes for Quantinuum's HUGR |
homepage | https://github.com/CQCL/hugr |
repository | https://github.com/CQCL/hugr |
max_upload_size | |
id | 1255483 |
size | 62,203 |
hugr
CLI tool for common tasks on serialized HUGR (e.g. validation,
visualisation).
Refer to the main HUGR crate for more information.
Install using cargo
:
cargo install hugr-cli
This will install the hugr
binary. Running hugr --help
shows:
Validate a HUGR.
Usage: hugr [OPTIONS] <INPUT>
Arguments:
<INPUT>
Options:
-m, --mermaid Visualise with mermaid.
-n, --no-validate Skip validation.
-v, --verbose... Increase logging verbosity
-q, --quiet... Decrease logging verbosity
-h, --help Print help
-V, --version Print version
To extend the CLI you can also add the project as a library dependency:
cargo add hugr-cli
Please read the API documentation here.
See CHANGELOG for a list of changes. The minimum supported rust version will only change on major releases.
See DEVELOPMENT.md for instructions on setting up the development environment.
This project is licensed under Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0).