Cargo Features

[dependencies]
opensc-sys = { version = "0.1.1", default-features = false, features = ["enable_sm", "enable_openssl"] }
default = enable_openssl, enable_sm

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

enable_sm default = enable_openssl

define the ENABLE_SM flag in the c headers. This makes secure messaging functions available.

enable_openssl default enable_sm

define the ENABLE_OPENSSL flag in the c headers. OpenSSL must be present on the system.