-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathCargo.toml
More file actions
140 lines (129 loc) · 3.28 KB
/
Cargo.toml
File metadata and controls
140 lines (129 loc) · 3.28 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
[profile.release]
lto = "thin"
[workspace]
resolver = "2"
members = [
"hugr",
"hugr-core",
"hugr-cli",
"hugr-model",
"hugr-llvm",
"hugr-py",
"hugr-persistent",
]
default-members = ["hugr", "hugr-core", "hugr-cli", "hugr-model"]
[workspace.package]
rust-version = "1.91"
edition = "2024"
homepage = "https://github.com/quantinuum/hugr"
repository = "https://github.com/quantinuum/hugr"
license = "Apache-2.0"
# authors
[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]
# Unstable check, may cause false positives.
# https://github.com/rust-lang/rust-clippy/issues/5112
debug_assert_with_mut_call = "warn"
too_long_first_doc_paragraph = "warn"
[workspace.dependencies]
anyhow = "1.0.101"
insta = { version = "1.47.2" }
bitvec = "1.0.1"
capnp = "0.25.2"
cgmath = "0.18.0"
cool_asserts = "2.0.4"
delegate = "0.13.5"
derive_more = "2.1.1"
downcast-rs = "2.0.2"
enum_dispatch = "0.3.11"
html-escape = "0.2.13"
itertools = "0.14.0"
jsonschema = { version = "0.46.2", default-features = false }
num-rational = "0.4.1"
pastey = "0.2.1"
proptest = "1.11.0"
proptest-derive = "0.8.0"
regex = "1.12.3"
regex-syntax = "0.8.9"
rstest = "0.26.1"
semver = "1.0.27"
serde = "1.0.228"
serde_json = "1.0.149"
serde_with = "3.18.0"
serde_yaml = "0.9.34"
smallvec = "1.15.1"
smol_str = "0.3.6"
static_assertions = "1.1.0"
tempfile = "3.27"
thiserror = "2.0.18"
typetag = "0.2.21"
clap = { version = "4.6.0" }
clio = "0.3.5"
clap-verbosity-flag = "3.0.4"
assert_cmd = "2.2"
assert_fs = "1.1.3"
predicates = "3.1.4"
indexmap = "2.14.0"
rustc-hash = "2.1.1"
bumpalo = "3.20.1"
pathsearch = "0.2.0"
base64 = "0.22.1"
ordered-float = "5.3.0"
pest = "2.8.6"
pest_derive = "2.8.6"
pretty = "0.12.5"
pretty_assertions = "1.4.1"
zstd = "0.13.2"
relrc = "0.5.0"
wyhash = "0.6.0"
fxhash = "0.2.1"
schemars = "1.2.1"
# These public dependencies usually require breaking changes downstream, so we
# try to be as permissive as possible.
portgraph = { version = "0.16.0" }
petgraph = { version = ">= 0.8.3, < 0.9", default-features = false }
# 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"
strum = ">= 0.27.2, < 0.29"
[profile.dev.package]
insta.opt-level = 3
# optimising these packages were found to contribute to property testing
# execution time.
#
# `flamegraph` below is https://github.com/flamegraph-rs/flamegraph
# $ perf record --call-graph=dwarf -F 99999 <unittest executable> prop_roundtrip_
# $ flamegraph --no-inline --perfdata perf.data
rand_chacha.opt-level = 3
rand_chacha.debug = 1
regex.opt-level = 3
regex.debug = 1
regex-automata.opt-level = 3
regex-automata.debug = 1
regex-syntax.opt-level = 3
regex-syntax.debug = 1
proptest.opt-level = 3
proptest.debug = 1
serde.opt-level = 3
serde.debug = 1
serde_json.opt-level = 3
serde_json.debug = 1
jsonschema.opt-level = 3
jsonschema.debug = 1
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"
# The profile that 'hugr-py' will build with
[profile.release-py]
inherits = "release"
lto = "fat"
strip = "symbols"
panic = "abort"