Cargo Features
[dependencies]
smartnoise_runtime = { version = "0.2.3", default-features = false, features = ["use-mpfr", "use-system-libs"] }
- default = use-mpfr
-
The
use-mpfr
feature is set by default wheneversmartnoise_runtime
is added without
somewhere in the dependency tree.default-features = false - use-mpfr default use-system-libs? = gmp-mpfr-sys, rug
-
re-export use-system-libs from mpfr
Affects
mechanisms::exponential_mechanism
,utilities::sample_from_set
,utilities::create_subset
,noise::sample_uniform_mpfr
,noise::sample_gaussian
,noise::apply_snapping_noise
… - use-system-libs = use-mpfr
-
Enables use-system-libs of gmp-mpfr-sys =1.3.1
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.