Skip to content

Commit

Permalink
chore: Move dependencies to the workspace Cargo.toml (#1102)
Browse files Browse the repository at this point in the history
Automated change generated by
[`cargo-autoinherit`](https://github.com/mainmatter/cargo-autoinherit).

This should simplify adding common dependencies on the new subcrates
(#1100).
  • Loading branch information
aborgna-q authored May 23, 2024
1 parent 3476bd7 commit 4b8d23d
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 40 deletions.
36 changes: 36 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
77 changes: 37 additions & 40 deletions hugr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4b8d23d

Please sign in to comment.