-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moves the main crate to a directory. This change does not alter the public package. Closes #865
- Loading branch information
Showing
96 changed files
with
103 additions
and
75 deletions.
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" |