Cargo Features

oqs = { version = "0.9.0", default-features = false, features = ["std", "non_portable", "vendored", "kems", "bike", "classic_mceliece", "frodokem", "hqc", "kyber", "ntruprime", "sigs", "dilithium", "falcon", "sphincs", "serde"] }
default = kems, sigs, std

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

Enables openssl of oqs-sys

std default

Affects oqs::init


Enables non_portable of oqs-sys


Enables vendored of oqs-sys

kems default = classic_mceliece, frodokem, hqc, kyber, ntruprime

algorithms: KEMs

Enables kems of oqs-sys


not supported on Windows or 32-bit ARM

Enables bike of oqs-sys

classic_mceliece kems

Enables classic_mceliece of oqs-sys

frodokem kems

Enables frodokem of oqs-sys

hqc kems

Enables hqc of oqs-sys

kyber kems

Enables kyber of oqs-sys

ntruprime kems

Enables ntruprime of oqs-sys

sigs default = dilithium, falcon, sphincs

algorithms: Signature schemes

Enables sigs of oqs-sys

dilithium sigs

Enables dilithium of oqs-sys

falcon sigs

Enables falcon of oqs-sys

sphincs sigs

Enables sphincs of oqs-sys

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

serde implicit feature

With derive and alloc