-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathCargo.toml
More file actions
101 lines (86 loc) · 2.5 KB
/
Copy pathCargo.toml
File metadata and controls
101 lines (86 loc) · 2.5 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
[workspace]
resolver = "3"
members = [
"xqvm",
"xqasm",
"xqcli",
"conformance",
"xqffi",
"fixtures/xqvm-wasm",
]
# fixtures/pallet-xqvm is a standalone workspace (heavy polkadot-sdk git dep);
# excluded so it does not inflate main workspace build times.
exclude = [ "fixtures/pallet-xqvm" ]
[workspace.package]
repository = "https://gitlab.com/quip.network/xquad"
license = "AGPL-3.0-or-later"
[workspace.dependencies]
### Workspace crates ###
# Version strings are required for `cargo publish`; `path` keeps the
# workspace build pointed at the live sources, and cargo rewrites
# dependency specs to drop the path on publish.
xqvm = { path = "./xqvm", version = "0.4.0-dev" }
xqasm = { path = "./xqasm", version = "0.4.0-dev" }
### Common dependencies ###
clap = { version = "4", features = [ "derive" ] }
miette = { version = "7", features = [ "fancy", "derive" ] }
pastey = "0.2.1"
thiserror = { version = "2", default-features = false }
serde_json = "1"
### Testing ###
assert_cmd = "2.2"
predicates = "3"
[workspace.lints.rust]
missing-docs = "warn"
nonstandard-style = "deny"
redundant-lifetimes = "warn"
rust-2018-idioms = "deny"
unreachable-pub = "warn"
unsafe-code = "deny"
unused-extern-crates = "warn"
unused-imports = "warn"
unused-must-use = "deny"
unused-results = "warn"
unused-qualifications = "warn"
[workspace.lints.clippy]
pedantic = { level = "warn", priority = -1 }
# Panic prevention
unwrap-used = "deny"
expect-used = "warn"
panic = "warn"
panic-in-result-fn = "deny"
unimplemented = "deny"
todo = "deny"
indexing-slicing = "warn"
# No cheating
allow-attributes = "deny"
allow-attributes-without-reason = "deny"
# Code hygiene
dbg-macro = "warn"
print-stdout = "deny"
print-stderr = "deny"
redundant-clone = "warn"
uninlined-format-args = "warn"
manual-string-new = "warn"
use-self = "deny"
# Safety
await-holding-lock = "deny"
large-futures = "deny"
exit = "deny"
mem-forget = "deny"
# Pedantic relaxations (too noisy)
module-name-repetitions = "allow"
similar-names = "allow"
must-use-candidate = "allow"
[workspace.lints.rustdoc]
all = "warn"
[profile.release]
lto = "thin"
codegen-units = 16
[profile.ci-test]
inherits = "release"
opt-level = 0
debug-assertions = true
overflow-checks = true
lto = false
codegen-units = 256