Skip to content

Commit

Permalink
Remove rustversion crate
Browse files Browse the repository at this point in the history
MSRV (Minimum Supported Rust Version) is now 1.66.0

 * Remove conditional compilation flags that were valid only when
   versions older than 1.66 were used.

Signed-off-by: Tomás González <[email protected]>
  • Loading branch information
tgonzalezorlandoarm committed Oct 3, 2023
1 parent 73d7a24 commit 1e9d897
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion tss-esapi-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ links = "tss2-esys"
bindgen = { version = "0.63.0", optional = true }
pkg-config = "0.3.18"
target-lexicon = "0.12.0"
rustversion = "1.0.14"

[features]
generate-bindings = ["bindgen"]
1 change: 0 additions & 1 deletion tss-esapi-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ fn main() {
}

#[cfg(feature = "generate-bindings")]
#[rustversion::attr(since(1.66), allow(clippy::uninlined_format_args))]
pub fn generate_from_system(esapi_out: PathBuf) {
pkg_config::Config::new()
.atleast_version(MINIMUM_VERSION)
Expand Down
2 changes: 0 additions & 2 deletions tss-esapi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@ picky-asn1-x509 = { version = "0.11.0", optional = true }
cfg-if = "1.0.0"
strum = { version = "0.25.0", optional = true }
strum_macros = { version = "0.25.0", optional = true }
rustversion = "1.0.14"

[dev-dependencies]
env_logger = "0.9.0"
sha2 = "0.10.1"

[build-dependencies]
semver = "1.0.7"
rustversion = "1.0.14"

[features]
default = ["abstraction"]
Expand Down
1 change: 0 additions & 1 deletion tss-esapi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0
use semver::{Version, VersionReq};

#[rustversion::attr(since(1.66), allow(clippy::uninlined_format_args))]
fn main() {
let tss_version_string = std::env::var("DEP_TSS2_ESYS_VERSION")
.expect("Failed to parse ENV variable DEP_TSS2_ESYS_VERSION as string");
Expand Down
1 change: 0 additions & 1 deletion tss-esapi/src/tcti_ldr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ impl TctiNameConf {
}
}

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

Expand Down

0 comments on commit 1e9d897

Please sign in to comment.