Cargo Features

lightning-invoice = { version = "0.30.0", default-features = false, features = ["no-std", "std", "serde"] }
default = std

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

no-std = hashbrown

Enables no-std of lightning

std default

Enables std of bech32 ^0.9.0, bitcoin ^0.30.2, lightning, and num-traits

Affects utils::create_invoice_from_channelmanager, utils::create_invoice_from_channelmanager_with_description_hash

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.

hashbrown no-std?

Enables hashbrown ^0.8

serde implicit feature

Enables serde


A generic serialization/deserialization framework