6 releases

new 0.2.0 Jul 19, 2024
0.1.4 Jul 16, 2024
0.1.1 Jun 7, 2024
0.1.0 May 29, 2024

#358 in Programming languages

Download history 131/week @ 2024-05-24 73/week @ 2024-05-31 175/week @ 2024-06-07 591/week @ 2024-06-14 633/week @ 2024-06-21 557/week @ 2024-06-28 820/week @ 2024-07-05 637/week @ 2024-07-12

2,720 downloads per month

Apache-2.0

1MB
22K SLoC

hugr-cli

build_status crates msrv codecov

hugr CLI tool for common tasks on serialized HUGR (e.g. validation, visualisation).

Refer to the main HUGR crate for more information.

Usage

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.

Recent Changes

See CHANGELOG for a list of changes. The minimum supported rust version will only change on major releases.

Development

See DEVELOPMENT.md for instructions on setting up the development environment.

License

This project is licensed under Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0).

Dependencies

~12MB
~226K SLoC