rust: Provide and use a workspace.lints table

Provide and use a `workspace.lints` table. This makes it easier to
maintain and to enforce one coding style. Let's explicitly disable the
`missing_docs` linting rule for tests.

MSRV for the lints table is 1.74 [1]

[1] https://doc.rust-lang.org/cargo/reference/workspaces.html#the-lints-table

Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Acked-by: Finn Callies <fcallies@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2024-11-11 14:08:20 +00:00
committed by Steffen Eiden
parent f68d3932c7
commit e6c17461a3
13 changed files with 27 additions and 16 deletions
-8
View File
@@ -1,14 +1,6 @@
// SPDX-License-Identifier: MIT
//
// Copyright IBM Corp. 2023, 2024
#![deny(missing_docs)]
#![warn(
missing_debug_implementations,
trivial_numeric_casts,
unstable_features,
unused_import_braces,
unused_qualifications
)]
#![doc = include_str!("../README.md")]
mod confidential;
mod error;