Skip to content

Commit

Permalink
removed coverage_attribute as it is now supported (#391)
Browse files Browse the repository at this point in the history
* removed coverage_attribute as it is now supported

* Bumped MSRV to 1.81.0
  • Loading branch information
CraZySacX authored Dec 18, 2024
1 parent 53b8e63 commit 5ab846c
Show file tree
Hide file tree
Showing 28 changed files with 32 additions and 46 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/vergen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-unknown-linux-gnu]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -76,7 +76,7 @@ jobs:
strategy:
matrix:
os: [macos-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-apple-darwin]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -92,7 +92,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-pc-windows-gnu]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -108,7 +108,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-pc-windows-msvc]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/vergen_git2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-unknown-linux-gnu]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -66,7 +66,7 @@ jobs:
strategy:
matrix:
os: [macos-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-apple-darwin]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -82,7 +82,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-pc-windows-gnu]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -98,7 +98,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-pc-windows-msvc]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/vergen_gitcl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-unknown-linux-gnu]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -66,7 +66,7 @@ jobs:
strategy:
matrix:
os: [macos-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-apple-darwin]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -82,7 +82,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-pc-windows-gnu]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -98,7 +98,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-pc-windows-msvc]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/vergen_gix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-unknown-linux-gnu]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -66,7 +66,7 @@ jobs:
strategy:
matrix:
os: [macos-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-apple-darwin]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -82,7 +82,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-pc-windows-gnu]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -98,7 +98,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-pc-windows-msvc]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/vergen_lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-unknown-linux-gnu]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -66,7 +66,7 @@ jobs:
strategy:
matrix:
os: [macos-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-apple-darwin]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -82,7 +82,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-pc-windows-gnu]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -98,7 +98,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-pc-windows-msvc]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/vergen_pretty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-unknown-linux-gnu]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -66,7 +66,7 @@ jobs:
strategy:
matrix:
os: [macos-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-apple-darwin]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -82,7 +82,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-pc-windows-gnu]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand All @@ -98,7 +98,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
channel: ["1.78.0", "stable", "beta", "nightly"]
channel: ["1.81.0", "stable", "beta", "nightly"]
target: [x86_64-pc-windows-msvc]
uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ to rerun instruction emission if the `SOURCE_DATE_EPOCH` environment variable ha
[![Crates.io](https://img.shields.io/crates/d/vergen-pretty.svg)](https://crates.io/crates/vergen-pretty)

## MSRV
The current minimum supported rust version is 1.78.0
The current minimum supported rust version is 1.81.0

## ⚠️ Notes on version 9 ⚠️
* Version 9 introduces 3 new libraries, `vergen-git2`, `vergen-gitcl`, and `vergen-gix` that will be versioned independently from `vergen`.
Expand Down
2 changes: 1 addition & 1 deletion test_util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
homepage = "https://github.com/rustyhorde/vergen"
keywords = ["cargo", "instructions", "build", "tool"]
license = "MIT OR Apache-2.0"
rust-version = "1.78.0"
rust-version = "1.81.0"
name = "test_util"
readme = "README.md"
repository = "https://github.com/rustyhorde/vergen"
Expand Down
1 change: 0 additions & 1 deletion test_util/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pub fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rustc-check-cfg=cfg(coverage_nightly)");
nightly();
beta();
stable();
Expand Down
1 change: 0 additions & 1 deletion test_util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ the [`TestRepos`] struct to creat temporary git repositories useful for `vergen-
)]
#![cfg_attr(all(doc, nightly), feature(doc_auto_cfg))]
#![cfg_attr(all(docsrs, nightly), feature(doc_cfg))]
#![cfg_attr(all(nightly, coverage_nightly), feature(coverage_attribute))]

#[cfg(all(test, not(feature = "repo")))]
use {anyhow as _, serial_test as _};
Expand Down
2 changes: 1 addition & 1 deletion vergen-git2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
homepage = "https://github.com/rustyhorde/vergen"
keywords = ["cargo", "instructions", "build", "tool"]
license = "MIT OR Apache-2.0"
rust-version = "1.78.0"
rust-version = "1.81.0"
name = "vergen-git2"
readme = "README.md"
repository = "https://github.com/rustyhorde/vergen"
Expand Down
1 change: 0 additions & 1 deletion vergen-git2/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pub fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rustc-check-cfg=cfg(coverage_nightly)");
nightly();
beta();
stable();
Expand Down
1 change: 0 additions & 1 deletion vergen-git2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ let build = BuildBuilder::default().build_timestamp(true).build()?;"
)]
#![cfg_attr(all(doc, nightly), feature(doc_auto_cfg))]
#![cfg_attr(all(docsrs, nightly), feature(doc_cfg))]
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

mod git2;

Expand Down
2 changes: 1 addition & 1 deletion vergen-gitcl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
homepage = "https://github.com/rustyhorde/vergen"
keywords = ["cargo", "instructions", "build", "tool"]
license = "MIT OR Apache-2.0"
rust-version = "1.78.0"
rust-version = "1.81.0"
name = "vergen-gitcl"
readme = "README.md"
repository = "https://github.com/rustyhorde/vergen"
Expand Down
1 change: 0 additions & 1 deletion vergen-gitcl/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pub fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rustc-check-cfg=cfg(coverage_nightly)");
nightly();
beta();
stable();
Expand Down
1 change: 0 additions & 1 deletion vergen-gitcl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ let build = BuildBuilder::default().build_timestamp(true).build()?;"
)]
#![cfg_attr(all(doc, nightly), feature(doc_auto_cfg))]
#![cfg_attr(all(docsrs, nightly), feature(doc_cfg))]
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

#[cfg(test)]
use {lazy_static as _, regex as _, temp_env as _};
Expand Down
2 changes: 1 addition & 1 deletion vergen-gix/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
homepage = "https://github.com/rustyhorde/vergen"
keywords = ["cargo", "instructions", "build", "tool"]
license = "MIT OR Apache-2.0"
rust-version = "1.78.0"
rust-version = "1.81.0"
name = "vergen-gix"
readme = "README.md"
repository = "https://github.com/rustyhorde/vergen"
Expand Down
1 change: 0 additions & 1 deletion vergen-gix/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pub fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rustc-check-cfg=cfg(coverage_nightly)");
nightly();
beta();
stable();
Expand Down
1 change: 0 additions & 1 deletion vergen-gix/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ let build = BuildBuilder::default().build_timestamp(true).build()?;"
)]
#![cfg_attr(all(doc, nightly), feature(doc_auto_cfg))]
#![cfg_attr(all(docsrs, nightly), feature(doc_cfg))]
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

#[cfg(test)]
use {lazy_static as _, regex as _};
Expand Down
2 changes: 1 addition & 1 deletion vergen-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
homepage = "https://github.com/rustyhorde/vergen"
keywords = ["cargo", "instructions", "build", "tool"]
license = "MIT OR Apache-2.0"
rust-version = "1.78.0"
rust-version = "1.81.0"
name = "vergen-lib"
readme = "README.md"
repository = "https://github.com/rustyhorde/vergen"
Expand Down
1 change: 0 additions & 1 deletion vergen-lib/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pub fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rustc-check-cfg=cfg(coverage_nightly)");
nightly();
beta();
stable();
Expand Down
1 change: 0 additions & 1 deletion vergen-lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@
)]
#![cfg_attr(all(doc, nightly), feature(doc_auto_cfg))]
#![cfg_attr(all(docsrs, nightly), feature(doc_cfg))]
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

#[cfg(test)]
use {temp_env as _, test_util as _};
Expand Down
2 changes: 1 addition & 1 deletion vergen-pretty/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
homepage = "https://github.com/rustyhorde/vergen"
keywords = ["cargo", "instructions", "build", "tool"]
license = "MIT OR Apache-2.0"
rust-version = "1.78.0"
rust-version = "1.81.0"
name = "vergen-pretty"
readme = "README.md"
repository = "https://github.com/rustyhorde/vergen"
Expand Down
1 change: 0 additions & 1 deletion vergen-pretty/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use {

fn main() -> Result<()> {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rustc-check-cfg=cfg(coverage_nightly)");
nightly();
beta();
stable();
Expand Down
1 change: 0 additions & 1 deletion vergen-pretty/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ assert!(!buf.is_empty());
)]
#![cfg_attr(all(doc, nightly), feature(doc_auto_cfg))]
#![cfg_attr(all(docsrs, nightly), feature(doc_cfg))]
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

#[cfg(feature = "header")]
mod header;
Expand Down
2 changes: 1 addition & 1 deletion vergen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
homepage = "https://github.com/rustyhorde/vergen"
keywords = ["cargo", "instructions", "build", "tool"]
license = "MIT OR Apache-2.0"
rust-version = "1.78.0"
rust-version = "1.81.0"
name = "vergen"
readme = "README.md"
repository = "https://github.com/rustyhorde/vergen"
Expand Down
1 change: 0 additions & 1 deletion vergen/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pub fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rustc-check-cfg=cfg(coverage_nightly)");
nightly();
beta();
stable();
Expand Down
1 change: 0 additions & 1 deletion vergen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ let build = BuildBuilder::default().build_timestamp(true).build()?;"
)]
#![cfg_attr(all(doc, nightly), feature(doc_auto_cfg))]
#![cfg_attr(all(docsrs, nightly), feature(doc_cfg))]
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

mod feature;

Expand Down

0 comments on commit 5ab846c

Please sign in to comment.