14 releases (6 breaking)

new 0.13.2 Oct 22, 2024
0.6.1 Oct 9, 2024
0.3.0 Jul 29, 2024

#142 in Programming languages

Download history 483/week @ 2024-07-02 799/week @ 2024-07-09 718/week @ 2024-07-16 629/week @ 2024-07-23 97/week @ 2024-07-30 82/week @ 2024-08-06 67/week @ 2024-08-13 8/week @ 2024-08-20 147/week @ 2024-08-27 442/week @ 2024-09-03 555/week @ 2024-09-10 301/week @ 2024-09-17 247/week @ 2024-09-24 388/week @ 2024-10-01 1069/week @ 2024-10-08 679/week @ 2024-10-15

2,527 downloads per month
Used in 3 crates (2 directly)

Apache-2.0

34KB
265 lines

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

~12–23MB
~363K SLoC