Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Configure global lints in .cargo/config
Browse files Browse the repository at this point in the history
In the absence of a way to configure lints across a workspace, we use
a technique described in EmbarkStudios/rust-ecosystem#68.

This allows us to move the lints that should unconditionally apply
to all crates to this one config, unblocking the split up of the mega
crate into multiple smaller ones.
  • Loading branch information
thomaseizinger committed Jan 27, 2022
1 parent b79b52d commit 8a1dd9a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ linker = "aarch64-linux-gnu-gcc"
[alias]
dev-maker = "run --bin maker -- testnet"
dev-taker = "run --bin taker -- --maker localhost:9999 --maker-id 10d4ba2ac3f7a22da4009d813ff1bc3f404dfe2cc93a32bedf1512aa9951c95e testnet" # Maker ID matches seed found in `testnet/maker_seed`

# Inspired by https://github.com/EmbarkStudios/rust-ecosystem/pull/68.
[build]
rustflags = [
"-Wclippy::disallowed_method",
"-Wclippy::dbg_macro",
"-Wunused-import-braces",
]
3 changes: 1 addition & 2 deletions daemon/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![cfg_attr(not(test), warn(clippy::unwrap_used))]
#![warn(clippy::disallowed_method)]
#![warn(clippy::dbg_macro)] // should be used only as a temporary debugging tool

use crate::bitcoin::Txid;
use crate::bitmex_price_feed::QUOTE_INTERVAL_MINUTES;
use crate::model::cfd::Order;
Expand Down

0 comments on commit 8a1dd9a

Please sign in to comment.