Skip to content

Commit 88768dc

Browse files
authored
Move some deny attributes to Cargo.toml. (#4474)
## Motivation We have `#![deny(missing_docs)]` and `#![deny(clippy::large_futures)]` in some modules, but we really want to deny both everywhere. ## Proposal Move them to `Cargo.toml`. ## Test Plan CI ## Release Plan - Nothing to do / These changes follow the usual release cycle. ## Links - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
1 parent f8eb7fb commit 88768dc

File tree

19 files changed

+6
-34
lines changed

19 files changed

+6
-34
lines changed

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,3 +357,9 @@ branch = "post-message"
357357

358358
[workspace.metadata.spellcheck]
359359
config = "spellcheck-cfg.toml"
360+
361+
[workspace.lints.rust]
362+
missing_docs = "deny"
363+
364+
[workspace.lints.clippy]
365+
large_futures = "deny"

linera-base/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
//! between the Linera protocol (compiled from Rust to native code) and Linera
66
//! applications (compiled from Rust to Wasm).
77
8-
#![deny(missing_docs)]
9-
#![deny(clippy::large_futures)]
108
#![allow(async_fn_in_trait)]
119

1210
use std::fmt;

linera-chain/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
//! This module manages the state of a Linera chain, including cross-chain communication.
55
6-
#![deny(clippy::large_futures)]
7-
86
pub mod block;
97
mod certificate;
108

linera-client/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//! This module provides a convenient library for writing a Linera client application.
55
66
#![recursion_limit = "256"]
7-
#![deny(clippy::large_futures)]
87
#![allow(async_fn_in_trait)]
98

109
pub mod chain_listener;

linera-core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
//! This module defines the core Linera protocol.
66
77
#![recursion_limit = "256"]
8-
#![deny(clippy::large_futures)]
98

109
mod chain_worker;
1110
pub mod client;

linera-execution/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
//! This module manages the execution of the system application and the user applications in a
55
//! Linera chain.
66
7-
#![deny(clippy::large_futures)]
8-
97
pub mod committee;
108
pub mod evm;
119
mod execution;

linera-rpc/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//! This module provides network abstractions and the data schemas for remote procedure
55
//! calls (RPCs) in the Linera protocol.
66
7-
#![deny(clippy::large_futures)]
87
// `tracing::instrument` is not compatible with this nightly Clippy lint
98
#![allow(unknown_lints)]
109

linera-sdk/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
//! The [`examples`](https://github.com/linera-io/linera-protocol/tree/main/examples)
2525
//! directory contains some example applications.
2626
27-
#![deny(missing_docs)]
28-
2927
#[macro_use]
3028
pub mod util;
3129

linera-service/src/cli/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// SPDX-License-Identifier: Apache-2.0
44

55
#![recursion_limit = "256"]
6-
#![deny(clippy::large_futures)]
76

87
use std::{
98
collections::{BTreeMap, BTreeSet},

linera-service/src/cli/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@
33

44
//! Helper module for the Linera CLI binary.
55
6-
#![deny(clippy::large_futures)]
7-
86
pub mod command;
97
pub mod net_up_utils;

0 commit comments

Comments
 (0)