Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
119 lines (114 loc) · 3.99 KB
/
Copy pathCargo.toml
File metadata and controls
119 lines (114 loc) · 3.99 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
# Copyright 2018 Chia Network Inc and POA Networks Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# and limitations under the License.
[workspace]
resolver = "2"
members = [
"crates/vdf",
"crates/channel",
"crates/channel-wasm",
"crates/bulletproofs-wasm",
"crates/bls48581-wasm",
"crates/verenc-wasm",
"crates/classgroup",
"crates/bls48581",
"crates/ed448-rust",
"crates/rpm",
"crates/bulletproofs",
"crates/verenc",
"crates/ferret",
"crates/dkls23_ffi",
"crates/dkls23-wasm",
"crates/dkls23",
"crates/quil-types",
"crates/quil-config",
"crates/quil-lifecycle",
"crates/quil-crypto",
"crates/quil-tries",
"crates/quil-tries-ffi",
"crates/quil-store",
"crates/quil-hypergraph",
"crates/quil-keys",
"crates/quil-keys-ffi",
"crates/quil-hypergraph-ffi",
"crates/quil-consensus",
"crates/quil-p2p",
"crates/quil-execution",
"crates/quil-engine",
"crates/quil-rpc",
"crates/quil-node",
"crates/quil-compiler",
"crates/quil-wallet",
"crates/libp2p-identity",
]
[patch.crates-io]
# Fork libp2p-identity to add Ed448 (KeyType=4) support for Quilibrium peer IDs
libp2p-identity = { path = "crates/libp2p-identity" }
# Local patch for libp2p-autonat 0.13.0 — one-line fix for a server-side
# panic at `v1/behaviour/as_server.rs:304` ("Peer is connected.") that
# fires when an inbound dial-back request races with the sender's
# disconnect, killing the entire swarm event loop. Upstream master
# still has the bug. See the crate's
# `src/v1/behaviour/as_server.rs` for the patched lines.
libp2p-autonat = { path = "crates/libp2p-autonat" }
# Local patch for libp2p-kad 0.46.2 (the version libp2p 0.54.1
# pulls in transitively) — bumps the per-handler
# `MAX_NUM_STREAMS` cap from 32 to 256 so a single peer can hold
# more simultaneous inbound kad substreams. The upstream constant
# is private and unconfigurable; on a busy DHT the 32-cap caused
# warnings at handler.rs:534 ("New inbound substream … exceeds
# inbound substream limit. … Dropping new substream.") and lost
# DHT queries. See `crates/libp2p-kad/src/handler.rs:43`.
libp2p-kad = { path = "crates/libp2p-kad" }
[profile.release]
# rpath = false is important to make Go bindings work
rpath = false
lto = true
debug = false
# panic = 'abort'
# Test profile overrides.
#
# Cryptography tests are 10-100x slower in unoptimized builds because the
# hand-rolled big-int, pairing, FFT, OT, and bulletproof code (and the
# heavy third-party curve/hash crates) need inlining and const
# propagation to be fast. The overrides below compile those packages
# with optimizations when building tests; Swatinem/rust-cache caches
# the resulting artifacts so the cost is paid once. Debug assertions
# and overflow checks remain on. `cargo build`/`cargo check` are
# unaffected — they use profile.dev.
# All third-party dependencies. `*` matches every package except the
# one currently being built, so workspace members still need explicit
# overrides below.
[profile.test.package."*"]
opt-level = 3
# Workspace crates whose own code is the hot path in tests.
[profile.test.package.bls48581]
opt-level = 3
[profile.test.package.dkls23]
opt-level = 3
[profile.test.package.dkls23_ffi]
opt-level = 3
[profile.test.package.ed448-bulletproofs]
opt-level = 3
[profile.test.package.classgroup]
opt-level = 3
[profile.test.package.vdf]
opt-level = 3
[profile.test.package.ferret]
opt-level = 3
[profile.test.package.channel]
opt-level = 3
[profile.test.package.verenc]
opt-level = 3
[profile.test.package.rpm]
opt-level = 3