diff --git a/Cargo.toml b/Cargo.toml index 4cdb5355..40285083 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,9 @@ bundled = ["libduckdb-sys/bundled"] httpfs = ["libduckdb-sys/httpfs", "bundled"] json = ["libduckdb-sys/json", "bundled"] parquet = ["libduckdb-sys/parquet", "bundled"] -vendored = ["libduckdb-sys/vendored", "bundled"] +openssl_vendored = ["libduckdb-sys/openssl_vendored", "bundled"] +unstable_boringssl = ["libduckdb-sys/unstable_boringssl", "bundled"] +openssl_bindgen = ["libduckdb-sys/openssl_bindgen", "bundled"] vtab = [] vtab-loadable = ["vtab", "duckdb-loadable-macros"] vtab-excel = ["vtab", "calamine"] diff --git a/libduckdb-sys/Cargo.toml b/libduckdb-sys/Cargo.toml index c6f59c78..70e05b50 100644 --- a/libduckdb-sys/Cargo.toml +++ b/libduckdb-sys/Cargo.toml @@ -24,7 +24,9 @@ httpfs = ["bundled"] json = ["bundled"] parquet = ["bundled"] extensions-full = ["httpfs", "json", "parquet"] -vendored = ["openssl-src"] +openssl_vendored = ["bundled", "openssl-src"] +openssl_bindgen = ["bundled", "bindgen", "pkg-config", "vcpkg"] +unstable_boringssl = ["bundled"] [dependencies] diff --git a/libduckdb-sys/openssl/find_normal.rs b/libduckdb-sys/openssl/find_normal.rs index 4655a8af..591857dd 100644 --- a/libduckdb-sys/openssl/find_normal.rs +++ b/libduckdb-sys/openssl/find_normal.rs @@ -141,7 +141,7 @@ openssl-sys = {} openssl-sys crate build failed: no supported version of OpenSSL found. Ways to fix it: -- Use the `vendored` feature of openssl-sys crate to build OpenSSL from source. +- Use the `openssl_vendored` feature of libduckdb-sys crate to build OpenSSL from source. - Use Homebrew to install the `openssl` package. ", diff --git a/libduckdb-sys/openssl/find_vendored.rs b/libduckdb-sys/openssl/find_vendored.rs index 2ab44cfa..63fb6abf 100644 --- a/libduckdb-sys/openssl/find_vendored.rs +++ b/libduckdb-sys/openssl/find_vendored.rs @@ -3,7 +3,7 @@ use std::path::PathBuf; pub fn get_openssl(_target: &str) -> (Vec, PathBuf) { let artifacts = openssl_src::Build::new().build(); - println!("cargo:vendored=1"); + println!("cargo:openssl_vendored=1"); println!("cargo:root={}", artifacts.lib_dir().parent().unwrap().display()); ( diff --git a/libduckdb-sys/openssl/mod.rs b/libduckdb-sys/openssl/mod.rs index a7bf791c..21b12045 100644 --- a/libduckdb-sys/openssl/mod.rs +++ b/libduckdb-sys/openssl/mod.rs @@ -22,7 +22,7 @@ extern crate autocfg; #[cfg(feature = "openssl_bindgen")] extern crate bindgen; extern crate cc; -#[cfg(feature = "vendored")] +#[cfg(feature = "openssl_vendored")] extern crate openssl_src; extern crate pkg_config; #[cfg(target_env = "msvc")] @@ -37,7 +37,7 @@ use std::{ mod cfgs; mod find_normal; -#[cfg(feature = "vendored")] +#[cfg(feature = "openssl_vendored")] mod find_vendored; #[cfg(feature = "openssl_bindgen")] mod run_bindgen; @@ -69,7 +69,7 @@ fn env(name: &str) -> Option { } fn find_openssl(target: &str) -> Result<(Vec, PathBuf), ()> { - #[cfg(feature = "vendored")] + #[cfg(feature = "openssl_vendored")] { // vendor if the feature is present, unless // OPENSSL_NO_VENDOR exists and isn't `0`