Cargo Features

[dependencies]
nimiq-primitives = { version = "0.2.0", default-features = false, features = ["all", "coin", "account", "policy", "networks"] }
default = all

The all feature is set by default whenever nimiq-primitives is added without default-features = false somewhere in the dependency tree.

all default = account, coin, networks, policy
coin all = failure, hex

Affects nimiq-primitives::coin, policy::block_reward_at

account all = enum-display-derive, failure, hex, nimiq-macros

Affects nimiq-primitives::account

policy all = fixed-unsigned, lazy_static, num-bigint, num-traits, parking_lot

Affects nimiq-primitives::policy

networks all

Affects nimiq-primitives::networks

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.

num-bigint policy?

Enables num-bigint ^0.2

num-traits policy?
parking_lot policy?

Enables parking_lot ^0.7

hex account? coin?

Enables hex ^0.3

lazy_static policy?
failure account? coin?
enum-display-derive account?
nimiq-macros account?
fixed-unsigned policy?