mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-07 19:59:23 +00:00
The `cargo doc` build started to fail with the rolling of `doc_auto_cfg` into `doc_cfg`, so now we don't build docs for deps (as we can't reasonably update `generic-array` at this time). `home` has been patched as we are able to, not as a direct requirement of this PR.
213 lines
5.3 KiB
TOML
213 lines
5.3 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = [
|
|
# std patches
|
|
"patches/matches",
|
|
|
|
# Rewrites/redirects
|
|
"patches/option-ext",
|
|
"patches/directories-next",
|
|
|
|
"common/std-shims",
|
|
"common/zalloc",
|
|
"common/patchable-async-sleep",
|
|
"common/db",
|
|
"common/env",
|
|
"common/request",
|
|
|
|
"crypto/transcript",
|
|
|
|
"crypto/ff-group-tests",
|
|
"crypto/dalek-ff-group",
|
|
"crypto/ed448",
|
|
"crypto/ciphersuite",
|
|
"crypto/ciphersuite/kp256",
|
|
|
|
"crypto/multiexp",
|
|
|
|
"crypto/schnorr",
|
|
"crypto/dleq",
|
|
"crypto/dkg",
|
|
"crypto/dkg/recovery",
|
|
"crypto/dkg/dealer",
|
|
"crypto/dkg/promote",
|
|
"crypto/dkg/musig",
|
|
"crypto/dkg/pedpop",
|
|
"crypto/frost",
|
|
"crypto/schnorrkel",
|
|
|
|
"networks/bitcoin",
|
|
|
|
"networks/ethereum/alloy-simple-request-transport",
|
|
"networks/ethereum",
|
|
"networks/ethereum/relayer",
|
|
|
|
"message-queue",
|
|
|
|
"processor/messages",
|
|
"processor",
|
|
|
|
"coordinator/tributary/tendermint",
|
|
"coordinator/tributary",
|
|
"coordinator",
|
|
|
|
"substrate/primitives",
|
|
|
|
"substrate/coins/primitives",
|
|
"substrate/coins/pallet",
|
|
|
|
"substrate/dex/pallet",
|
|
|
|
"substrate/validator-sets/primitives",
|
|
"substrate/validator-sets/pallet",
|
|
|
|
"substrate/genesis-liquidity/primitives",
|
|
"substrate/genesis-liquidity/pallet",
|
|
|
|
"substrate/emissions/primitives",
|
|
"substrate/emissions/pallet",
|
|
|
|
"substrate/economic-security/pallet",
|
|
|
|
"substrate/in-instructions/primitives",
|
|
"substrate/in-instructions/pallet",
|
|
|
|
"substrate/signals/primitives",
|
|
"substrate/signals/pallet",
|
|
|
|
"substrate/abi",
|
|
|
|
"substrate/runtime",
|
|
"substrate/node",
|
|
|
|
"substrate/client",
|
|
|
|
"orchestration",
|
|
|
|
"mini",
|
|
|
|
"tests/no-std",
|
|
|
|
"tests/docker",
|
|
"tests/message-queue",
|
|
"tests/processor",
|
|
"tests/coordinator",
|
|
"tests/full-stack",
|
|
"tests/reproducible-runtime",
|
|
]
|
|
|
|
# Always compile Monero (and a variety of dependencies) with optimizations due
|
|
# to the extensive operations required for Bulletproofs
|
|
[profile.dev.package]
|
|
subtle = { opt-level = 3 }
|
|
curve25519-dalek = { opt-level = 3 }
|
|
|
|
ff = { opt-level = 3 }
|
|
group = { opt-level = 3 }
|
|
|
|
crypto-bigint = { opt-level = 3 }
|
|
dalek-ff-group = { opt-level = 3 }
|
|
minimal-ed448 = { opt-level = 3 }
|
|
|
|
multiexp = { opt-level = 3 }
|
|
|
|
monero-oxide = { opt-level = 3 }
|
|
|
|
[profile.release]
|
|
panic = "unwind"
|
|
overflow-checks = true
|
|
|
|
[patch.crates-io]
|
|
# Dependencies from monero-oxide which originate from within our own tree
|
|
std-shims = { path = "common/std-shims" }
|
|
simple-request = { path = "common/request" }
|
|
dalek-ff-group = { path = "crypto/dalek-ff-group" }
|
|
flexible-transcript = { path = "crypto/transcript" }
|
|
modular-frost = { path = "crypto/frost" }
|
|
|
|
# https://github.com/rust-lang-nursery/lazy-static.rs/issues/201
|
|
lazy_static = { git = "https://github.com/rust-lang-nursery/lazy-static.rs", rev = "5735630d46572f1e5377c8f2ba0f79d18f53b10c" }
|
|
|
|
# These have `std` alternatives
|
|
matches = { path = "patches/matches" }
|
|
home = { path = "patches/home" }
|
|
|
|
# directories-next was created because directories was unmaintained
|
|
# directories-next is now unmaintained while directories is maintained
|
|
# The directories author pulls in ridiculously pointless crates and prefers
|
|
# copyleft licenses
|
|
# The following two patches resolve everything
|
|
option-ext = { path = "patches/option-ext" }
|
|
directories-next = { path = "patches/directories-next" }
|
|
|
|
[workspace.lints.clippy]
|
|
uninlined_format_args = "allow" # TODO
|
|
unwrap_or_default = "allow"
|
|
manual_is_multiple_of = "allow"
|
|
incompatible_msrv = "allow" # Manually verified with a GitHub workflow
|
|
borrow_as_ptr = "deny"
|
|
cast_lossless = "deny"
|
|
cast_possible_truncation = "deny"
|
|
cast_possible_wrap = "deny"
|
|
cast_precision_loss = "deny"
|
|
cast_ptr_alignment = "deny"
|
|
cast_sign_loss = "deny"
|
|
checked_conversions = "deny"
|
|
cloned_instead_of_copied = "deny"
|
|
enum_glob_use = "deny"
|
|
expl_impl_clone_on_copy = "deny"
|
|
explicit_into_iter_loop = "deny"
|
|
explicit_iter_loop = "deny"
|
|
flat_map_option = "deny"
|
|
float_cmp = "deny"
|
|
fn_params_excessive_bools = "deny"
|
|
ignored_unit_patterns = "deny"
|
|
implicit_clone = "deny"
|
|
inefficient_to_string = "deny"
|
|
invalid_upcast_comparisons = "deny"
|
|
large_stack_arrays = "deny"
|
|
linkedlist = "deny"
|
|
macro_use_imports = "deny"
|
|
manual_instant_elapsed = "deny"
|
|
# TODO manual_let_else = "deny"
|
|
manual_ok_or = "deny"
|
|
manual_string_new = "deny"
|
|
map_unwrap_or = "deny"
|
|
match_bool = "deny"
|
|
match_same_arms = "deny"
|
|
missing_fields_in_debug = "deny"
|
|
# TODO needless_continue = "deny"
|
|
needless_pass_by_value = "deny"
|
|
ptr_cast_constness = "deny"
|
|
range_minus_one = "deny"
|
|
range_plus_one = "deny"
|
|
redundant_closure_for_method_calls = "deny"
|
|
redundant_else = "deny"
|
|
string_add_assign = "deny"
|
|
unchecked_time_subtraction = "deny"
|
|
unnecessary_box_returns = "deny"
|
|
unnecessary_join = "deny"
|
|
unnecessary_wraps = "deny"
|
|
unnested_or_patterns = "deny"
|
|
unused_async = "deny"
|
|
unused_self = "deny"
|
|
zero_sized_map_values = "deny"
|
|
|
|
# TODO: These were incurred when updating Rust as necessary for compilation, yet aren't being fixed
|
|
# at this time due to the impacts it'd have throughout the repository (when this isn't actively the
|
|
# primary branch, `next` is)
|
|
needless_continue = "allow"
|
|
needless_lifetimes = "allow"
|
|
useless_conversion = "allow"
|
|
empty_line_after_doc_comments = "allow"
|
|
manual_div_ceil = "allow"
|
|
manual_let_else = "allow"
|
|
unnecessary_map_or = "allow"
|
|
result_large_err = "allow"
|
|
unneeded_struct_pattern = "allow"
|
|
[workspace.lints.rust]
|
|
unused = "allow" # TODO: https://github.com/rust-lang/rust/issues/147648
|
|
mismatched_lifetime_syntaxes = "allow"
|
|
unused_attributes = "allow"
|
|
unused_parens = "allow"
|