Skip to content

Commit 20cb984

Browse files
authored
Revert "Move some deny attributes to Cargo.toml. (#4474)" (#4491)
## Motivation #4474 doesn't actually work: We have to add `lints.workspace = true` to all `Cargo.toml`s. And if I do that, there are _lots_ of errors. ## Proposal Revert this for now. I will try again later, and also add the missing comments. ## Test Plan This only reverts an earlier PR. ## Release Plan - Nothing to do / These changes follow the usual release cycle. ## Links - Reverts #4474. - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
1 parent 2c81d57 commit 20cb984

File tree

19 files changed

+34
-6
lines changed

19 files changed

+34
-6
lines changed

Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,3 @@ 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
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)]
810
#![allow(async_fn_in_trait)]
911

1012
use std::fmt;

linera-chain/src/lib.rs

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

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

linera-client/src/lib.rs

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

910
pub mod chain_listener;

linera-core/src/lib.rs

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

910
mod chain_worker;
1011
pub mod client;

linera-execution/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
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+
79
pub mod committee;
810
pub mod evm;
911
mod execution;

linera-rpc/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
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)]
78
// `tracing::instrument` is not compatible with this nightly Clippy lint
89
#![allow(unknown_lints)]
910

linera-sdk/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
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+
2729
#[macro_use]
2830
pub mod util;
2931

linera-service/src/cli/main.rs

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

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

78
use std::{
89
collections::{BTreeMap, BTreeSet},

linera-service/src/cli/mod.rs

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

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

0 commit comments

Comments
 (0)