From dbd2187dc1b48339f2b3d02abb63b8d7f3b48c47 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 21 Nov 2023 19:16:48 +0100 Subject: [PATCH 1/2] Upgrade to Rust 1.74.0 --- rust-toolchain.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index edf53789e..ea94a40a1 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "1.73.0" +channel = "1.74.0" components = ["rustfmt", "clippy"] targets = [ "aarch64-apple-ios", From eaa3b68b4321c10ecaf5d5e33353c30d5b163de5 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 21 Nov 2023 20:24:26 +0100 Subject: [PATCH 2/2] Specify lints for whole workspace in `Cargo.toml` --- Cargo.toml | 4 ++++ crates/fj-core/Cargo.toml | 3 +++ crates/fj-core/src/lib.rs | 2 -- crates/fj-export/Cargo.toml | 2 ++ crates/fj-export/src/lib.rs | 2 -- crates/fj-interop/Cargo.toml | 3 +++ crates/fj-interop/src/lib.rs | 2 -- crates/fj-math/Cargo.toml | 3 +++ crates/fj-math/src/lib.rs | 2 -- crates/fj-viewer/Cargo.toml | 4 ++++ crates/fj-viewer/src/lib.rs | 2 -- crates/fj-window/Cargo.toml | 3 +++ crates/fj-window/src/lib.rs | 2 -- crates/fj/Cargo.toml | 3 +++ crates/fj/src/lib.rs | 2 -- 15 files changed, 25 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2502606b2..119d8db45 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,6 +45,10 @@ keywords = ["cad", "programmatic", "code-cad"] categories = ["encoding", "mathematics", "rendering"] +[workspace.lints.rust] +missing_docs = "warn" + + [workspace.dependencies.fj] version = "0.47.0" path = "crates/fj" diff --git a/crates/fj-core/Cargo.toml b/crates/fj-core/Cargo.toml index d4c822865..ff650f2b7 100644 --- a/crates/fj-core/Cargo.toml +++ b/crates/fj-core/Cargo.toml @@ -10,6 +10,9 @@ license.workspace = true keywords.workspace = true categories.workspace = true +[lints] +workspace = true + [dependencies] fj-interop.workspace = true fj-math.workspace = true diff --git a/crates/fj-core/src/lib.rs b/crates/fj-core/src/lib.rs index cf7fcad3d..0ae0a67d1 100644 --- a/crates/fj-core/src/lib.rs +++ b/crates/fj-core/src/lib.rs @@ -81,8 +81,6 @@ //! //! [Fornjot]: https://www.fornjot.app/ -#![warn(missing_docs)] - pub mod algorithms; pub mod geometry; pub mod objects; diff --git a/crates/fj-export/Cargo.toml b/crates/fj-export/Cargo.toml index 17eaa1c28..d5ab79fdf 100644 --- a/crates/fj-export/Cargo.toml +++ b/crates/fj-export/Cargo.toml @@ -10,6 +10,8 @@ license.workspace = true keywords.workspace = true categories.workspace = true +[lints] +workspace = true [dependencies] fj-interop.workspace = true diff --git a/crates/fj-export/src/lib.rs b/crates/fj-export/src/lib.rs index dcb7fab92..599848441 100644 --- a/crates/fj-export/src/lib.rs +++ b/crates/fj-export/src/lib.rs @@ -8,8 +8,6 @@ //! //! [Fornjot]: https://www.fornjot.app/ -#![warn(missing_docs)] - use std::{fs::File, path::Path}; use thiserror::Error; diff --git a/crates/fj-interop/Cargo.toml b/crates/fj-interop/Cargo.toml index e40226a36..163a10c4f 100644 --- a/crates/fj-interop/Cargo.toml +++ b/crates/fj-interop/Cargo.toml @@ -10,5 +10,8 @@ license.workspace = true keywords.workspace = true categories.workspace = true +[lints] +workspace = true + [dependencies] fj-math.workspace = true diff --git a/crates/fj-interop/src/lib.rs b/crates/fj-interop/src/lib.rs index afc1b93d8..d02bb31a8 100644 --- a/crates/fj-interop/src/lib.rs +++ b/crates/fj-interop/src/lib.rs @@ -9,8 +9,6 @@ //! //! [Fornjot]: https://www.fornjot.app/ -#![warn(missing_docs)] - pub mod ext; pub mod mesh; pub mod model; diff --git a/crates/fj-math/Cargo.toml b/crates/fj-math/Cargo.toml index 6bccc6461..1e46f0b0b 100644 --- a/crates/fj-math/Cargo.toml +++ b/crates/fj-math/Cargo.toml @@ -10,6 +10,9 @@ license.workspace = true keywords.workspace = true categories.workspace = true +[lints] +workspace = true + [dependencies] approx = "0.5.1" decorum = "0.3.1" diff --git a/crates/fj-math/src/lib.rs b/crates/fj-math/src/lib.rs index dea470a8c..5b5aae6fd 100644 --- a/crates/fj-math/src/lib.rs +++ b/crates/fj-math/src/lib.rs @@ -31,8 +31,6 @@ //! [nalgebra]: https://nalgebra.org/ //! [Parry]: https://www.parry.rs/ -#![warn(missing_docs)] - mod aabb; mod arc; mod circle; diff --git a/crates/fj-viewer/Cargo.toml b/crates/fj-viewer/Cargo.toml index 2b0c63166..1ddb30f41 100644 --- a/crates/fj-viewer/Cargo.toml +++ b/crates/fj-viewer/Cargo.toml @@ -10,6 +10,10 @@ license.workspace = true keywords.workspace = true categories.workspace = true +[lints] +workspace = true + + [dependencies] fj-interop.workspace = true fj-math.workspace = true diff --git a/crates/fj-viewer/src/lib.rs b/crates/fj-viewer/src/lib.rs index b3532ef05..2ada953c7 100644 --- a/crates/fj-viewer/src/lib.rs +++ b/crates/fj-viewer/src/lib.rs @@ -8,8 +8,6 @@ //! //! [Fornjot]: https://www.fornjot.app/ -#![warn(missing_docs)] - mod assets; mod camera; mod graphics; diff --git a/crates/fj-window/Cargo.toml b/crates/fj-window/Cargo.toml index cf892e47f..ec55daaa0 100644 --- a/crates/fj-window/Cargo.toml +++ b/crates/fj-window/Cargo.toml @@ -10,6 +10,9 @@ license.workspace = true keywords.workspace = true categories.workspace = true +[lints] +workspace = true + [dependencies] fj-interop.workspace = true diff --git a/crates/fj-window/src/lib.rs b/crates/fj-window/src/lib.rs index bbd295a2c..54867995c 100644 --- a/crates/fj-window/src/lib.rs +++ b/crates/fj-window/src/lib.rs @@ -8,8 +8,6 @@ //! //! [Fornjot]: https://www.fornjot.app/ -#![warn(missing_docs)] - mod display; mod window; diff --git a/crates/fj/Cargo.toml b/crates/fj/Cargo.toml index dfec6da3a..a1a4fe4e8 100644 --- a/crates/fj/Cargo.toml +++ b/crates/fj/Cargo.toml @@ -10,6 +10,9 @@ license.workspace = true keywords.workspace = true categories.workspace = true +[lints] +workspace = true + [dependencies] fj-core.workspace = true diff --git a/crates/fj/src/lib.rs b/crates/fj/src/lib.rs index 8224c3599..c7c190041 100644 --- a/crates/fj/src/lib.rs +++ b/crates/fj/src/lib.rs @@ -9,8 +9,6 @@ //! //! [Fornjot]: https://www.fornjot.app/ -#![warn(missing_docs)] - mod args; mod handle_model;