Cargo Features

[dependencies]
dcap-qvl = { version = "0.3.12", default-features = false, features = ["std", "borsh", "borsh_schema", "report", "js", "python", "ring", "rustcrypto", "contract"] }
default = report, ring, rustcrypto, std

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

std default python? report = anyhow, serde_json, urlencoding

Enables std of asn1_der, optional borsh, const-oid ^0.9.5, der ^0.7.8, pem, parity-scale-codec, scale-info, and serde

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

borsh borsh_schema?

Enables borsh

borsh_schema = borsh

Enables unstable__schema of borsh

report default python? = futures, reqwest, std, tracing

Affects dcap-qvl::collateral

js = serde-wasm-bindgen, wasm-bindgen

Enables js of getrandom ^0.2

Affects verify::js_get_collateral, verify::js_verify, verify::js_verify_with_root_ca

python = pyo3, pyo3-async-runtimes, report, ring, std, tokio

Affects dcap-qvl::python

ring default python? = _anycrypto

Enables ring of dcap-qvl-webpki and ring

Crypto backends (choose one via features: "ring" or "rustcrypto")

Affects verify::ring

rustcrypto default = _anycrypto

Enables p256, sha2, and signature, rustcrypto of dcap-qvl-webpki

Affects verify::rustcrypto

contract = getrandom
_anycrypto ring rustcrypto

Affects collateral::get_collateral_and_verify, verify::js_verify, verify::js_verify_with_root_ca

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.

anyhow std
reqwest report

Enables reqwest ^0.12.24

urlencoding std
serde_json std
tracing report
futures report
getrandom contract? js?

Enables getrandom ^0.2

serde-wasm-bindgen js?
wasm-bindgen js?
pyo3 python?

Enables pyo3 ^0.25

Python bindings

pyo3-async-runtimes python?

Enables pyo3-async-runtimes ^0.25

tokio python?