diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index fec34ec7e7..acf6515b1e 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-xlarge] - features: ["", "--features static", "--features schannel", "--features schannel,static"] + features: ["", "--features static", "--features schannel", "--features schannel,static", "--features openssl3", "--features openssl3,static"] exclude: - os: ubuntu-latest features: "--features schannel" diff --git a/Cargo.toml b/Cargo.toml index 892e6f969f..15e8f79af8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,6 +47,7 @@ include = [ [features] default = [] schannel = [] +openssl3 = [] static = [] preview-api = [] diff --git a/scripts/build.rs b/scripts/build.rs index 7dbb6d3ec0..f9831e6e22 100644 --- a/scripts/build.rs +++ b/scripts/build.rs @@ -24,6 +24,8 @@ fn main() { .define("QUIC_OUTPUT_DIR", quic_output_dir.to_str().unwrap()); if cfg!(feature = "schannel") { config.define("QUIC_TLS", "schannel"); + } else if cfg!(feature = "openssl3") { + config.define("QUIC_TLS", "openssl3"); } else { config.define("QUIC_TLS", "openssl"); }