Cargo Features

[dependencies]
opengm_crypto = { version = "0.1.0", default-features = false, features = ["std", "rug"] }
default = std

The std feature is set by default whenever opengm_crypto is added without default-features = false somewhere in the dependency tree.

std default = ctor

Enables std of num, os_rng and std of rand and std of thiserror

thiserror:

Std feature enables support for formatting std::path::{Path, PathBuf}
conveniently in an error message.

#[derive(Error, Debug)]
#[error("failed to create configuration file {path}")]
pub struct MyError {
pub path: PathBuf,
pub source: std::io::Error,
}

Without std, this would need to be written #[error("... {}", path.display())].

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.

ctor std
rug implicit feature

Enables rug

Arbitrary-precision integers, rational, floating-point and complex numbers based on GMP, MPFR and MPC.