Cargo Features

[dependencies]
opendp = { version = "0.11.1", default-features = false, features = ["floating-point", "contrib", "honest-but-curious", "untrusted", "polars", "use-openssl", "test-plot", "ffi", "derive", "bindings-python", "bindings", "partials"] }
default = partials, use-openssl

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

floating-point untrusted?
contrib untrusted?

Affects opendp::interactive, transformations::quantile_score_candidates

honest-but-curious untrusted?

Affects ffi::opendp_transformations__make_identity

untrusted = contrib, floating-point, honest-but-curious
polars = ciborium, polars-arrow, polars-plan, pyo3, pyo3-polars, serde, serde-pickle

Enables polars =0.41.3

A strict version requirement is necessary to keep the serialization format of LazyFrames stable.
If you change the version of Polars,
be sure to also change the Python package version requirement and test binary compatibility.

Affects opendp::polars

use-openssl default = openssl

Affects samplers::fill_bytes

test-plot = vega_lite_4

for plotting in unit tests

ffi bindings? = cbindgen, lazy_static

include extern "C" functions in cdylib

Affects opendp::ffi

derive bindings? partials = opendp_tooling, proc-macro2, syn

execute proc macros to insert proof links

Enables full of opendp_derive

bindings-python = bindings

deprecated

bindings bindings-python? = derive, ffi

generate language bindings

partials default = derive

generate "then_xxx" functions in Rust for "make_xxx" functions whose first two arguments are the metric space

Enables partials of opendp_derive

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.

openssl use-openssl
opendp_tooling derive?
polars-plan polars?

Enables polars-plan =0.41.3

polars-arrow polars?

Enables polars-arrow =0.41.3

pyo3 polars?

Enables pyo3 ^0.21.2

pyo3-polars polars?

Enables pyo3-polars =0.15.0

serde polars?
serde-pickle polars?
ciborium polars?
lazy_static ffi?
vega_lite_4 test-plot?

Enables vega_lite_4 ^0.6.0

syn build derive?

Enables syn ^1.0

proc-macro2 build derive?
cbindgen build ffi?

Enables cbindgen ^0.20.0