Skip to content

Commit 979210a

Browse files
Merge pull request #445 from tgonzalezorlandoarm/tg/main-update-msrv-1.66.0
Update MSRV 1.66.0
2 parents 7e8ad77 + 944c692 commit 979210a

File tree

10 files changed

+339
-329
lines changed

10 files changed

+339
-329
lines changed

.clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
msrv = "1.60.0"
1+
msrv = "1.66.0"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Build the container
3030
run: docker build -t ubuntucontainer tss-esapi/tests/ --file tss-esapi/tests/Dockerfile-ubuntu
3131
- name: Run the container
32-
run: docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi --env RUST_TOOLCHAIN_VERSION=1.60.0 ubuntucontainer /tmp/rust-tss-esapi/tss-esapi/tests/all-ubuntu.sh
32+
run: docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi --env RUST_TOOLCHAIN_VERSION=1.66.0 ubuntucontainer /tmp/rust-tss-esapi/tss-esapi/tests/all-ubuntu.sh
3333
# All in one job as I think it is a big overhead to build and run the Docker
3434
# container?
3535
tests-ubuntu:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ At the moment we test (via CI) and support the following Rust compiler versions:
99

1010
* On Ubuntu we test with:
1111
- The latest stable compiler version, as accessible through `rustup`.
12-
- The 1.60 compiler version.
12+
- The 1.66 compiler version.
1313
* On Fedora we test with the compiler version included with the Fedora 35 release.
1414

1515
If you need support for other versions of the compiler, get in touch with us to see what we can do!

tss-esapi-sys/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ links = "tss2-esys"
1616
bindgen = { version = "0.63.0", optional = true }
1717
pkg-config = "0.3.18"
1818
target-lexicon = "0.12.0"
19-
rustversion = "1.0.14"
2019

2120
[features]
2221
generate-bindings = ["bindgen"]

tss-esapi-sys/build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ fn main() {
5858
}
5959

6060
#[cfg(feature = "generate-bindings")]
61-
#[rustversion::attr(since(1.66), allow(clippy::uninlined_format_args))]
6261
pub fn generate_from_system(esapi_out: PathBuf) {
6362
pkg_config::Config::new()
6463
.atleast_version(MINIMUM_VERSION)

tss-esapi/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,13 @@ picky-asn1-x509 = { version = "0.11.0", optional = true }
3232
cfg-if = "1.0.0"
3333
strum = { version = "0.25.0", optional = true }
3434
strum_macros = { version = "0.25.0", optional = true }
35-
rustversion = "1.0.14"
3635

3736
[dev-dependencies]
3837
env_logger = "0.9.0"
3938
sha2 = "0.10.1"
4039

4140
[build-dependencies]
4241
semver = "1.0.7"
43-
rustversion = "1.0.14"
4442

4543
[features]
4644
default = ["abstraction"]

tss-esapi/build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-License-Identifier: Apache-2.0
33
use semver::{Version, VersionReq};
44

5-
#[rustversion::attr(since(1.66), allow(clippy::uninlined_format_args))]
65
fn main() {
76
let tss_version_string = std::env::var("DEP_TSS2_ESYS_VERSION")
87
.expect("Failed to parse ENV variable DEP_TSS2_ESYS_VERSION as string");

tss-esapi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
//! are at most one level away from root.
5959
//!
6060
//! Minimum supported Rust version (MSRV):
61-
//! We currently check with version 1.53.0 of the Rust compiler during CI builds.
61+
//! We currently check with version 1.66.0 of the Rust compiler during CI builds.
6262
//!
6363
//! # Notes on code safety:
6464
//! * thread safety is ensured by the required mutability of the `Context` structure within the

tss-esapi/src/tcti_ldr.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ impl TctiNameConf {
165165
}
166166
}
167167

168-
#[rustversion::attr(since(1.66), allow(clippy::uninlined_format_args))]
169168
impl TryFrom<TctiNameConf> for CString {
170169
type Error = Error;
171170

@@ -627,19 +626,13 @@ impl FromStr for TabrmdConfig {
627626
}
628627

629628
/// DBus type for usage with TABRMD
630-
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
629+
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq)]
631630
pub enum BusType {
631+
#[default]
632632
System,
633633
Session,
634634
}
635635

636-
#[allow(clippy::derivable_impls)] // Remove this when MSRV is higher then 1.57
637-
impl Default for BusType {
638-
fn default() -> Self {
639-
BusType::System
640-
}
641-
}
642-
643636
impl FromStr for BusType {
644637
type Err = Error;
645638

0 commit comments

Comments
 (0)