Cargo Features

[dependencies]
satsnet-units = { version = "0.1.3", default-features = false, features = ["std", "alloc", "serde"] }
default = std

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

std default = alloc

Enables std of satsnet-internals

alloc std

Enables satsnet-internals

Affects amount::SerdeAmount.ser_btc, amount::SerdeAmount.des_btc, amount::SerdeAmountForOpt.ser_btc_opt, amount::serde.as_btc, satsnet-units::fee_rate, satsnet-units::locktime, satsnet-units::parse, satsnet-units::weight

Features from optional dependencies

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

Affects amount::serde