Cargo Features

[dependencies]
rust-htslib = { version = "0.48.0", default-features = false, features = ["bindgen", "bzip2", "curl", "gcs", "libdeflate", "lzma", "s3", "serde_feature", "static"] }
default = bzip2, curl, lzma

These default features are set whenever rust-htslib is added without default-features = false somewhere in the dependency tree.

bindgen

Enables hts-sys

bzip2 default

Enables bzip2 of hts-sys

curl default

Enables curl of hts-sys

gcs

Enables gcs of hts-sys

hts-sys:

Google Cloud Storage support

libdeflate

Enables libdeflate of hts-sys

lzma default

Enables lzma of hts-sys

s3

Enables s3 of hts-sys

hts-sys:

Amazon S3 support

serde_feature = serde, serde_bytes

Enables serde of bio-types

Affects bam::record_serde

static

Enables static of hts-sys

hts-sys:

Don't dynamically link to other libraries

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

serde serde_feature?
serde_bytes serde_feature?