Cargo Features

[dependencies]
mercat = { version = "1.1.2", default-features = false, features = ["u32_backend", "no_std", "std", "alloc", "u64_backend", "avx2_backend", "serde_all", "serde_bytes", "getrandom"] }
default = std, u64_backend

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

u32_backend

Backends

Enables u32_backend of confidential_identity_core

no_std = u64_backend

Enables no_std of confidential_identity_core

std default = criterion, serde_all

Enables std of sp-std ^5.0.0

Substrate

and std of parity-scale-codec, confidential_identity_core, failure, rand, and rand_core

rand:

Option (enabled by default): without "std" rand uses libcore; this option enables functionality expected to be available on a standard platform.

alloc

Enables alloc of confidential_identity_core

u64_backend default no_std?

Enables u64_backend of confidential_identity_core

avx2_backend

Enables avx2_backend of confidential_identity_core

serde_all std = serde, serde_json

Enables serde_all of confidential_identity_core

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.

serde serde_all?

Enables serde

Common

serde_json serde_all?
serde_bytes implicit feature

Enables serde_bytes

serde_bytes:

Optimized handling of &[u8] and Vec<u8> for Serde

getrandom implicit feature

Enables getrandom

getrandom:

A small cross-platform library for retrieving random data from system source

criterion std

Enables criterion ^0.3