From d3ab04a84b78bed81c67d21873581302c787fc25 Mon Sep 17 00:00:00 2001 From: est31 Date: Wed, 14 Jun 2023 07:16:58 +0200 Subject: [PATCH] Disable botan tests for windows Botan's rust bindings don't compile on windows --- Cargo.toml | 5 ++++- tests/botan.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c601a030..a2cbd74f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,10 +37,13 @@ features = ["x509-parser"] openssl = "0.10" x509-parser = { version = "0.15", features = ["verify"] } webpki = { version = "0.22", features = ["std"] } -botan = { version = "0.10", features = ["vendored"] } rand = "0.8" rsa = "0.8" +[target.'cfg(not(windows))'.dependencies] +botan = { version = "0.10", features = ["vendored"] } + + # This greatly speeds up rsa key generation times # (only applies to the dev-dependency because cargo # ignores profile overrides for non leaf packages) diff --git a/tests/botan.rs b/tests/botan.rs index 00a96e71..4b0d2845 100644 --- a/tests/botan.rs +++ b/tests/botan.rs @@ -1,4 +1,4 @@ -#[cfg(feature = "x509-parser")] +#![cfg(all(feature = "x509-parser", not(windows)))] use rcgen::DnValue; use rcgen::{BasicConstraints, Certificate, CertificateParams, DnType, IsCa};