Skip to content

Commit

Permalink
Explicit MSRV to work around cargo audit (#114)
Browse files Browse the repository at this point in the history
See rustsec/rustsec#1206 for details.
  • Loading branch information
ia0 authored Oct 9, 2024
1 parent bbdd772 commit 88ad621
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 5 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,21 @@ jobs:
- name: cd lib/macro && cargo +nightly audit --deny=warnings
run: cargo +nightly audit --deny=warnings
working-directory: lib/macro
- name: cd bin && cargo +nightly audit --deny=warnings
run: cargo +nightly audit --deny=warnings
working-directory: bin
- name: cd nostd && cargo +nightly audit --deny=warnings
run: cargo +nightly audit --deny=warnings
working-directory: nostd
- name: cd lib/fuzz && cargo +nightly audit --deny=warnings
run: cargo +nightly audit --deny=warnings
working-directory: lib/fuzz
- name: cd cmp && cargo +nightly audit --deny=warnings
run: cargo +nightly audit --deny=warnings
working-directory: cmp
- name: cd www && cargo +nightly audit --deny=warnings
run: cargo +nightly audit --deny=warnings
working-directory: www
- run: rustup install stable
- run: cargo +stable install cargo-semver-checks
- name: cd lib && cargo +stable build
Expand Down
1 change: 1 addition & 0 deletions bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.3.4"
authors = ["Julien Cretin <[email protected]>"]
license = "MIT"
edition = "2021"
rust-version = "1.81"
keywords = ["base-conversion", "encoding", "base64", "base32", "hex"]
categories = ["command-line-utilities", "encoding"]
readme = "README.md"
Expand Down
1 change: 1 addition & 0 deletions cmp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["ia0 <[email protected]>"]
license = "MIT"
edition = "2021"
rust-version = "1.81"
build = "build.rs"
publish = false

Expand Down
1 change: 1 addition & 0 deletions lib/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.0"
authors = ["Automatically generated"]
publish = false
edition = "2021"
rust-version = "1.81"

[package.metadata]
cargo-fuzz = true
Expand Down
1 change: 1 addition & 0 deletions nostd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "nostd"
version = "0.1.0"
authors = ["Julien Cretin <[email protected]>"]
edition = "2021"
rust-version = "1.81"
license = "MIT"
publish = false

Expand Down
1 change: 1 addition & 0 deletions www/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["Julien Cretin <[email protected]>"]
license = "MIT"
edition = "2021"
rust-version = "1.81"
repository = "https://github.com/ia0/data-encoding"
description = "Website for data-encoding"
publish = false
Expand Down
5 changes: 0 additions & 5 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,6 @@ impl Actions {
// SemverChecks only guarantees support for stable.
toolchain = Toolchain::Stable;
}
// TODO(https://github.com/rustsec/rustsec/pull/1206): Remove when released.
if task == Task::Audit && !matches!(dir, Dir::Lib | Dir::MacroInternal | Dir::Macro)
{
continue;
}
actions.insert(Action { os, toolchain, task, dir });
}
}
Expand Down

0 comments on commit 88ad621

Please sign in to comment.