From 4b8d23d7b2aab43448fe5b5d8046f472feac4c3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= <121866228+aborgna-q@users.noreply.github.com> Date: Thu, 23 May 2024 12:48:44 +0100 Subject: [PATCH] chore: Move dependencies to the workspace Cargo.toml (#1102) Automated change generated by [`cargo-autoinherit`](https://github.com/mainmatter/cargo-autoinherit). This should simplify adding common dependencies on the new subcrates (#1100). --- Cargo.toml | 36 +++++++++++++++++++++++ hugr/Cargo.toml | 77 ++++++++++++++++++++++++------------------------- 2 files changed, 73 insertions(+), 40 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1d86879ab..ad4eec3e5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,42 @@ missing_docs = "warn" [workspace.dependencies] portgraph = { version = "0.12.0" } insta = { version = "1.34.0" } +assert_cmd = "2.0.14" +assert_fs = "1.1.1" +bitvec = "1.0.1" +cgmath = "0.18.0" +clap = "4.5.4" +clap-stdin = "0.4.0" +context-iterators = "0.2.0" +cool_asserts = "2.0.3" +criterion = "0.5.1" +delegate = "0.12.0" +derive_more = "0.99.17" +downcast-rs = "1.2.0" +enum_dispatch = "0.3.11" +html-escape = "0.2.13" +itertools = "0.13.0" +jsonschema = "0.18.0" +lazy_static = "1.4.0" +num-rational = "0.4.1" +paste = "1.0" +petgraph = { version = "0.6.3", default-features = false } +predicates = "3.1.0" +proptest = "1.4.0" +proptest-derive = "0.4.0" +regex = "1.9.5" +regex-syntax = "0.8.3" +rstest = "0.19.0" +serde = "1.0" +serde_json = "1.0.97" +serde_yaml = "0.9.19" +smol_str = "0.2.0" +strum = "0.26.1" +strum_macros = "0.26.1" +thiserror = "1.0.28" +typetag = "0.2.7" +urlencoding = "2.1.2" +webbrowser = "1.0.0" [profile.dev.package] insta.opt-level = 3 diff --git a/hugr/Cargo.toml b/hugr/Cargo.toml index 89a5f8949..4993a8cd7 100644 --- a/hugr/Cargo.toml +++ b/hugr/Cargo.toml @@ -27,49 +27,46 @@ cli = ["dep:clap", "dep:clap-stdin"] [dependencies] portgraph = { workspace = true, features = ["serde", "petgraph"] } -thiserror = "1.0.28" -regex = "1.9.5" -cgmath = { version = "0.18.0", features = ["serde"] } -num-rational = { version = "0.4.1", features = ["serde"] } -downcast-rs = "1.2.0" -serde = { version = "1.0", features = [ - # Rc used here for Extension, but unfortunately we must turn the feature on globally - "derive", - "rc", -] } -serde_yaml = "0.9.19" -typetag = "0.2.7" -smol_str = { version = "0.2.0", features = ["serde"] } -derive_more = "0.99.17" -itertools = "0.13.0" -html-escape = "0.2.13" -bitvec = { version = "1.0.1", features = ["serde"] } -enum_dispatch = "0.3.11" -lazy_static = "1.4.0" -petgraph = { version = "0.6.3", default-features = false } -context-iterators = "0.2.0" -serde_json = "1.0.97" -delegate = "0.12.0" -paste = "1.0" -strum = "0.26.1" -strum_macros = "0.26.1" -clap = { version = "4.5.4", features = ["derive"], optional = true } -clap-stdin = { version = "0.4.0", optional = true } +thiserror = { workspace = true } +regex = { workspace = true } +cgmath = { workspace = true, features = ["serde"] } +num-rational = { workspace = true, features = ["serde"] } +downcast-rs = { workspace = true } +# Rc used here for Extension, but unfortunately we must turn the feature on globally +serde = { workspace = true, features = ["derive", "rc"] } +serde_yaml = { workspace = true } +typetag = { workspace = true } +smol_str = { workspace = true, features = ["serde"] } +derive_more = { workspace = true } +itertools = { workspace = true } +html-escape = { workspace = true } +bitvec = { workspace = true, features = ["serde"] } +enum_dispatch = { workspace = true } +lazy_static = { workspace = true } +petgraph = { workspace = true } +context-iterators = { workspace = true } +serde_json = { workspace = true } +delegate = { workspace = true } +paste = { workspace = true } +strum = { workspace = true } +strum_macros = { workspace = true } +clap = { workspace = true, features = ["derive"], optional = true } +clap-stdin = { workspace = true, optional = true } [dev-dependencies] -criterion = { version = "0.5.1", features = ["html_reports"] } -rstest = "0.19.0" -webbrowser = "1.0.0" -urlencoding = "2.1.2" -cool_asserts = "2.0.3" +criterion = { workspace = true, features = ["html_reports"] } +rstest = { workspace = true } +webbrowser = { workspace = true } +urlencoding = { workspace = true } +cool_asserts = { workspace = true } insta = { workspace = true, features = ["yaml"] } -jsonschema = "0.18.0" -proptest = { version = "1.4.0" } -proptest-derive = { version = "0.4.0" } -regex-syntax = { version = "0.8.3" } -assert_cmd = "2.0.14" -predicates = "3.1.0" -assert_fs = "1.1.1" +jsonschema = { workspace = true } +proptest = { workspace = true } +proptest-derive = { workspace = true } +regex-syntax = { workspace = true } +assert_cmd = { workspace = true } +predicates = { workspace = true } +assert_fs = { workspace = true } [[bench]] name = "bench_main"