diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd4b903..306c96f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Default features run: cargo test --workspace msrv: - name: "Check MSRV: 1.70.0" + name: "Check MSRV: 1.74.0" runs-on: ubuntu-latest steps: - name: Checkout repository @@ -41,7 +41,7 @@ jobs: - name: Install Rust uses: actions-rs/toolchain@v1 with: - toolchain: 1.70.0 # MSRV + toolchain: 1.74.0 # MSRV profile: minimal override: true - uses: Swatinem/rust-cache@v2 @@ -74,7 +74,7 @@ jobs: - name: Install Rust uses: actions-rs/toolchain@v1 with: - toolchain: 1.70.0 # MSRV + toolchain: 1.74.0 # MSRV profile: minimal override: true components: clippy @@ -90,4 +90,4 @@ jobs: - uses: actions/checkout@v4 - uses: EmbarkStudios/cargo-deny-action@v1 with: - rust-version: "1.70.0" + rust-version: "1.74.0" diff --git a/Cargo.toml b/Cargo.toml index 51bc4f2..900d62e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ keywords = [ "features", "multivers", ] -rust-version = "1.70" +rust-version = "1.74" repository = "https://github.com/ronnychevalier/cargo-multivers" include = ["README.md", "CHANGELOG.md", "/src/*", "/LICENSE*"] @@ -30,6 +30,12 @@ exclude = [ "tests/test-useless-computation", ] +[workspace.lints.rust] +missing_docs = "warn" + +[lints] +workspace = true + [dependencies] anyhow = "1" escargot = "0.5" diff --git a/README.md b/README.md index 94e296c..0b88f72 100644 --- a/README.md +++ b/README.md @@ -82,5 +82,5 @@ additional terms or conditions. [Latest Version]: https://img.shields.io/crates/v/cargo-multivers.svg [crates.io]: https://crates.io/crates/cargo-multivers [ci-image]: https://img.shields.io/github/actions/workflow/status/ronnychevalier/cargo-multivers/ci.yml -[rustc-image]: https://img.shields.io/badge/rustc-1.66+-blue.svg +[rustc-image]: https://img.shields.io/badge/rustc-1.74+-blue.svg [license-image]: https://img.shields.io/crates/l/cargo-multivers.svg diff --git a/multivers-runner/Cargo.toml b/multivers-runner/Cargo.toml index 465920e..a8822a6 100644 --- a/multivers-runner/Cargo.toml +++ b/multivers-runner/Cargo.toml @@ -14,6 +14,7 @@ keywords = [ "multivers", ] repository = "https://github.com/ronnychevalier/cargo-multivers" +rust-version = "1.74" [dependencies] cfg-if = "1" @@ -36,3 +37,6 @@ quote = { version = "1.0", default-features = false } qbsdiff = "1.4.0" bzip2 = { version = "0.4", features = ["static"] } proc-exit = "2" + +[lints] +workspace = true diff --git a/multivers-runner/src/lib.rs b/multivers-runner/src/lib.rs index 8cda799..8a28ad9 100644 --- a/multivers-runner/src/lib.rs +++ b/multivers-runner/src/lib.rs @@ -50,7 +50,6 @@ #![feature(stdarch_internal)] #![cfg_attr(not(test), no_main)] #![cfg_attr(test, allow(dead_code))] -#![warn(missing_docs)] mod build; diff --git a/src/main.rs b/src/main.rs index 59395b9..3352da0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,4 @@ +//! Cargo subcommand to build multiple versions of the same binary, each with a different CPU features set, merged into a single portable optimized binary. use std::io::Write; use anyhow::Context;