diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5be47d02..bd698394 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,7 +9,7 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: components: rustfmt - toolchain: 1.70.0 + toolchain: 1.80.0 - run: cargo fmt --all -- --check clippy-openssl: @@ -20,7 +20,7 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: components: clippy - toolchain: 1.70.0 + toolchain: 1.80.0 - run: cargo clippy --features=openssl,hw_tests,dangerous_hw_tests --all-targets -- -D clippy::all -D unused_imports -D warnings -D clippy::style clippy-crypto_nossl: @@ -31,7 +31,7 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: components: clippy - toolchain: 1.70.0 + toolchain: 1.80.0 - run: cargo clippy --features=crypto_nossl,hw_tests,dangerous_hw_tests --all-targets -- -D clippy::all -D unused_imports -D warnings -D clippy::style readme: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 044499ee..d6b8af81 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: - ubuntu-latest - macos-12 toolchain: - - 1.70.0 + - 1.80.0 - stable profile: - name: debug @@ -44,7 +44,7 @@ jobs: - macos-12 - windows-latest toolchain: - - 1.70.0 + - 1.80.0 - stable profile: - name: debug diff --git a/Cargo.toml b/Cargo.toml index 7c8c2fdb..f2dcbbe4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ categories = [ "hardware-support", ] exclude = [".gitignore", ".github/*"] -rust-version = "1.70.0" +rust-version = "1.80.0" [badges] # See https://doc.rust-lang.org/cargo/reference/manifest.html#the-badges-section diff --git a/build.rs b/build.rs index f2e6c85e..451da612 100644 --- a/build.rs +++ b/build.rs @@ -2,6 +2,10 @@ fn main() { use std::path::Path; + + // Add in configurations to be checked within the code. + println!("cargo::rustc-check-cfg=cfg(has_sev)"); + println!("cargo::rustc-check-cfg=cfg(has_sev_guest)"); if cfg!(feature = "hw_tests") || Path::new("/dev/sev").exists() { println!("cargo:rustc-cfg=has_sev");