diff --git a/hugr-cli/src/lib.rs b/hugr-cli/src/lib.rs index 6a2d89039..421a900fa 100644 --- a/hugr-cli/src/lib.rs +++ b/hugr-cli/src/lib.rs @@ -1,6 +1,6 @@ //! Standard command line tools, used by the hugr binary. -use clap::Parser; +pub use clap::Parser; use clap_stdin::FileOrStdin; use hugr_core::{extension::ExtensionRegistry, Hugr, HugrView}; use thiserror::Error; diff --git a/hugr/Cargo.toml b/hugr/Cargo.toml index 9d7d68d06..aa5e33b3e 100644 --- a/hugr/Cargo.toml +++ b/hugr/Cargo.toml @@ -25,13 +25,12 @@ path = "src/lib.rs" extension_inference = [] # Definitions used by the `hugr` binary -_cli = ["dep:hugr-cli", "dep:clap"] +_cli = ["dep:hugr-cli"] [dependencies] hugr-core = { path = "../hugr-core", version = "0.0.0" } hugr-passes = { path = "../hugr-passes", version = "0.1.0" } hugr-cli = { path = "../hugr-cli", version = "0.1.0", optional = true } -clap = { workspace = true, optional = true } [dev-dependencies] rstest = { workspace = true } diff --git a/hugr/src/main.rs b/hugr/src/main.rs index f46ab26d8..a1bf109f4 100644 --- a/hugr/src/main.rs +++ b/hugr/src/main.rs @@ -9,8 +9,7 @@ use hugr::std_extensions::logic::EXTENSION as LOGICS_EXTENSION; use hugr::extension::{ExtensionRegistry, PRELUDE}; -use clap::Parser; -use hugr_cli::CmdLineArgs; +use hugr_cli::{CmdLineArgs, Parser}; fn main() { let opts = CmdLineArgs::parse();