-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathCargo.toml
More file actions
111 lines (99 loc) · 2.97 KB
/
Cargo.toml
File metadata and controls
111 lines (99 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[profile.release]
lto = "thin"
[workspace]
resolver = "2"
members = [
"tket",
"tket-py",
"compile-rewriter",
"badger-optimiser",
"tket-qsystem",
"tket1-passes",
"qis-compiler",
"tket-qec",
]
default-members = ["tket", "tket-qsystem"]
[workspace.package]
rust-version = "1.89"
edition = "2024"
homepage = "https://github.com/quantinuum/tket2"
repository = "https://github.com/quantinuum/tket2"
license = "Apache-2.0"
[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
# Set by our CI
'cfg(ci_run)',
# Set by codecov
'cfg(coverage,coverage_nightly)',
] }
missing_docs = "warn"
[workspace.lints.clippy]
allow_attributes = "warn"
# TODO: Fix warnings of this lint and set to "warn"
iter_over_hash_type = "allow"
# TODO: Reduce the size of error types.
result_large_err = "allow"
large_enum_variant = "allow"
[patch.crates-io]
# Uncomment to use unreleased versions of hugr
# hugr = { git = "https://github.com/quantinuum/hugr", "rev" = "5415abebf35be4af4e5bac5c7fe54381aea55a3e" }
# hugr-core = { git = "https://github.com/quantinuum/hugr", "rev" = "5415abebf35be4af4e5bac5c7fe54381aea55a3e" }
# hugr-cli = { git = "https://github.com/quantinuum/hugr", "rev" = "5415abebf35be4af4e5bac5c7fe54381aea55a3e" }
# hugr-passes = { git = "https://github.com/quantinuum/hugr", "rev" = "5415abebf35be4af4e5bac5c7fe54381aea55a3e" }
# hugr-llvm = { git = "https://github.com/quantinuum/hugr", "rev" = "5415abebf35be4af4e5bac5c7fe54381aea55a3e" }
# portgraph = { git = "https://github.com/quantinuum/portgraph", rev = "68b96ac737e0c285d8c543b2d74a7aa80a18202c" }
[workspace.dependencies]
# Make sure to run `just recompile-eccs` if the hugr serialisation format changes.
hugr = "0.25.5"
hugr-core = "0.25.5"
hugr-cli = "0.25.5"
portgraph = "0.15.3"
# There can only be one `pyo3` dependency in the whole workspace, so we use a
# loose version constraint to prevent breaking changes in dependent crates where possible.
pyo3 = ">= 0.27.2, < 0.29"
pyo3-build-config = ">= 0.27.2, < 0.29"
bindgen = "0.72"
cbindgen = "0.29"
cc = "1.2.55"
conan2 = "0.1.9"
itertools = "0.14.0"
tket-json-rs = "0.8.0"
portmatching = "0.3.3"
bytemuck = "1.25.0"
cgmath = "0.18.0"
chrono = "0.4.43"
clap = "4.5.58"
crossbeam-channel = "0.5.15"
csv = "1.4.0"
delegate = "0.13.5"
derive_more = "2.1.1"
fxhash = "0.2.1"
indexmap = "2.13.0"
lazy_static = "1.5.0"
libc = "0.2.181"
num_cpus = "1.17.0"
peak_alloc = "0.3.0"
pest = "2.8.6"
pest_derive = "2.8.6"
petgraph = { version = ">= 0.8.3, < 0.9", default-features = false }
priority-queue = "2.7.0"
rayon = "1.11"
rmp-serde = "1.3.1"
rstest = "0.26.1"
serde = "1.0.228"
serde_json = "1.0.149"
serde_with = "3.16.1"
smol_str = "0.3.5"
strum = "0.27.2"
thiserror = "2.0.18"
tracing = "0.1.44"
tracing-appender = "0.2.4"
tracing-subscriber = "0.3.22"
typetag = "0.2.21"
cool_asserts = "2.0.4"
zstd = "0.13.3"
anyhow = "1.0.101"
num-rational = "0.4.2"
[profile.release.package.tket-py]
# Some configurations to reduce the size of tket wheels
strip = true