Skip to content

Commit

Permalink
re export parser to avoid dependancy
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed May 28, 2024
1 parent f28fb0a commit 16f1c8f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hugr-cli/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 1 addition & 2 deletions hugr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 1 addition & 2 deletions hugr/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 16f1c8f

Please sign in to comment.