diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3d98254e8..dc9a204d5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -76,6 +76,12 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: ./lcov.info + - name: Test standard build without default features + uses: actions-rs/cargo@v1 + with: + command: test + args: --no-default-features + - name: Test musl build without default features env: CFLAGS: -I/usr/local/musl/include diff --git a/Cargo.toml b/Cargo.toml index c6e0d0677..95afd61ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,6 @@ default = ["bzip2", "lzma", "curl"] bzip2 = ["hts-sys/bzip2"] lzma = ["hts-sys/lzma"] curl = ["hts-sys/curl"] -#openssl = ["hts-sys/openssl"] serde = ["serde_base", "serde_bytes"] static = [] diff --git a/hts-sys/Cargo.toml b/hts-sys/Cargo.toml index 296a916df..6180bd912 100644 --- a/hts-sys/Cargo.toml +++ b/hts-sys/Cargo.toml @@ -27,7 +27,6 @@ curl-sys = { version = "0.4.31", optional = true, features = ["static-curl", "st default = ["bzip2", "lzma"] bzip2 = ["bzip2-sys"] lzma = ["lzma-sys"] -#openssl = ["openssl-sys"] curl = ["curl-sys"] static = [] @@ -35,4 +34,4 @@ static = [] fs-utils = "1.1" bindgen = { version = "0.53.2", default-features = false, features = ["runtime"] } cc = "1.0" -glob = "0.3.0" \ No newline at end of file +glob = "0.3.0" diff --git a/hts-sys/build.rs b/hts-sys/build.rs index 66f745c6c..04f41c6e9 100644 --- a/hts-sys/build.rs +++ b/hts-sys/build.rs @@ -46,7 +46,7 @@ fn main() { if !out.join("htslib").exists() { copy_directory("htslib", &out).unwrap(); } - + let use_bzip2 = env::var("CARGO_FEATURE_BZIP2").is_ok(); if !use_bzip2 { let bzip2_patterns = vec!["s/ -lbz2//", "/#define HAVE_LIBBZ2/d"]; @@ -59,7 +59,7 @@ fn main() { } let use_lzma = env::var("CARGO_FEATURE_LZMA").is_ok(); - if !use_lzma && want_static { + if !use_lzma { let lzma_patterns = vec!["s/ -llzma//", "/#define HAVE_LIBLZMA/d"]; sed_htslib_makefile(&out, &lzma_patterns, "lzma"); } else if let Ok(inc) = env::var("DEP_LZMA_INCLUDE").map(PathBuf::from) { diff --git a/hts-sys/src/lib.rs b/hts-sys/src/lib.rs index c0774ffe3..fe2728e74 100644 --- a/hts-sys/src/lib.rs +++ b/hts-sys/src/lib.rs @@ -5,7 +5,6 @@ #![allow(improper_ctypes)] //! This module exposes the raw Htslib bindings. -#[cfg(feature = "libz")] extern crate libz_sys; #[cfg(feature = "bzip2")] extern crate bzip2_sys;