Skip to content

Commit

Permalink
chore: use Cargo.toml new lints feature
Browse files Browse the repository at this point in the history
It bumps the MSRV to 1.74.
  • Loading branch information
ronnychevalier committed Nov 23, 2023
1 parent f853dbf commit 157acbb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ 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
uses: actions/checkout@v4
- 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
Expand Down Expand Up @@ -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
Expand All @@ -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"
8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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*"]

Expand All @@ -30,6 +30,12 @@ exclude = [
"tests/test-useless-computation",
]

[workspace.lints.rust]
missing_docs = "warn"

[lints]
workspace = true

[dependencies]
anyhow = "1"
escargot = "0.5"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions multivers-runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ keywords = [
"multivers",
]
repository = "https://github.com/ronnychevalier/cargo-multivers"
rust-version = "1.74"

[dependencies]
cfg-if = "1"
Expand All @@ -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
1 change: 0 additions & 1 deletion multivers-runner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
#![feature(stdarch_internal)]
#![cfg_attr(not(test), no_main)]
#![cfg_attr(test, allow(dead_code))]
#![warn(missing_docs)]

mod build;

Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 157acbb

Please sign in to comment.