-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Add a rust workspace #868
Merged
+103
−75
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,25 @@ | ||
[package] | ||
name = "quantinuum-hugr" | ||
version = "0.2.0" | ||
edition = "2021" | ||
rust-version = "1.75" | ||
|
||
license = "Apache-2.0" | ||
readme = "README.md" | ||
documentation = "https://docs.rs/hugr/" | ||
repository = "https://github.com/CQCL/hugr" | ||
description = "Quantinuum's Hierarchical Unified Graph Representation" | ||
keywords = ["Quantum", "Quantinuum"] | ||
categories = ["compilers"] | ||
|
||
[lib] | ||
# Using different names for the lib and for the package is supported, but may be confusing. | ||
# https://github.com/rust-lang/cargo/issues/6827 | ||
# TODO: Should we rename one of them? | ||
name = "hugr" | ||
bench = false | ||
path = "src/lib.rs" | ||
[profile.release] | ||
lto = "thin" | ||
|
||
[features] | ||
extension_inference = [] | ||
[workspace] | ||
resolver = "2" | ||
members = ["quantinuum-hugr"] | ||
default-members = ["quantinuum-hugr"] | ||
|
||
[dependencies] | ||
thiserror = "1.0.28" | ||
portgraph = { version = "0.12.0", features = ["serde", "petgraph"] } | ||
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.12.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" | ||
|
||
[dev-dependencies] | ||
criterion = { version = "0.5.1", features = ["html_reports"] } | ||
rstest = "0.18.1" | ||
webbrowser = "0.8.10" | ||
urlencoding = "2.1.2" | ||
cool_asserts = "2.0.3" | ||
insta = { version = "1.34.0", features = ["yaml"] } | ||
jsonschema = "0.17.1" | ||
[workspace.package] | ||
rust-version = "1.75" | ||
edition = "2021" | ||
homepage = "https://github.com/CQCL/tket2" | ||
repository = "https://github.com/CQCL/tket2" | ||
license = "Apache-2.0" | ||
# authors | ||
|
||
[[bench]] | ||
name = "bench_main" | ||
harness = false | ||
[workspace.lints.rust] | ||
missing_docs = "warn" | ||
|
||
[workspace.dependencies] | ||
portgraph = { version = "0.12.0" } | ||
insta = { version = "1.34.0" } | ||
|
||
[profile.dev.package.insta] | ||
opt-level = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
[package] | ||
name = "quantinuum-hugr" | ||
version = "0.2.0" | ||
edition = { workspace = true } | ||
rust-version = { workspace = true } | ||
|
||
license = { workspace = true } | ||
readme = "README.md" | ||
documentation = "https://docs.rs/hugr/" | ||
homepage = { workspace = true } | ||
repository = { workspace = true } | ||
description = "Quantinuum's Hierarchical Unified Graph Representation" | ||
keywords = ["Quantum", "Quantinuum"] | ||
categories = ["compilers"] | ||
|
||
[lib] | ||
name = "hugr" | ||
bench = false | ||
path = "src/lib.rs" | ||
|
||
[features] | ||
extension_inference = [] | ||
|
||
[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.12.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" | ||
|
||
[dev-dependencies] | ||
criterion = { version = "0.5.1", features = ["html_reports"] } | ||
rstest = "0.18.1" | ||
webbrowser = "0.8.10" | ||
urlencoding = "2.1.2" | ||
cool_asserts = "2.0.3" | ||
insta = { workspace = true, features = ["yaml"] } | ||
jsonschema = "0.17.1" | ||
|
||
[[bench]] | ||
name = "bench_main" | ||
harness = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../README.md |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
[workspace] | ||
changelog_config = "cliff.toml" # use a custom git-cliff configuration | ||
# disable the changelog for all packages | ||
changelog_update = false | ||
|
||
[[package]] | ||
name = "quantinuum-hugr" | ||
# enable the changelog for this package | ||
changelog_update = true | ||
# set the path of the changelog to the root of the repository | ||
changelog_path = "./CHANGELOG.md" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this changing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it's on the workspace
Cargo.toml
(under[workspace.lints.rust]
).