You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PR defines a new hugr cli interface with utilities. This is available directly on the hugr package, so it can be installed with cargo install hugr.
This requires the bin target to be defined directly in the main crate.
Currently the accessory code for the binary that handles arguments and tests is exposed directly under a cli feature in the hugr lib. We expect some internal projects to depend on this feature, but in general it's not a useful feature for users of the library.
We clean up this by following the structure of ripgrep:
Define a hugr-cli subcrate with the library code and tests. Users can depend directly on this.
Rename the hugr feature to _cli so it doesn't appear on docs.rs, and make it require hugr-cli.
This would help with modularising the code and reducing compile times.
The text was updated successfully, but these errors were encountered:
Followup from my comment on the cli PR #1096 (comment).
The PR defines a new
hugr
cli interface with utilities. This is available directly on the hugr package, so it can be installed withcargo install hugr
.This requires the bin target to be defined directly in the main crate.
Currently the accessory code for the binary that handles arguments and tests is exposed directly under a
cli
feature in thehugr
lib. We expect some internal projects to depend on this feature, but in general it's not a useful feature for users of the library.We clean up this by following the structure of
ripgrep
:hugr-cli
subcrate with the library code and tests. Users can depend directly on this.hugr
feature to_cli
so it doesn't appear ondocs.rs
, and make it requirehugr-cli
.This would help with modularising the code and reducing compile times.
The text was updated successfully, but these errors were encountered: