Cargo Features

kaspad has no features set by default.

[dependencies]
kaspad = { version = "0.15.0", features = ["heap", "devnet-prealloc", "semaphore-trace"] }
heap = dhat

Enables heap of kaspa-alloc

This changes the global allocator for all of the next dependencies so should be kept first

devnet-prealloc

Enables devnet-prealloc of kaspa-consensus

Affects args::Args.num_prealloc_utxos, args::Args.prealloc_address, args::Args.prealloc_amount

semaphore-trace

Enables semaphore-trace of kaspa-utils

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.

dhat heap?