Cargo Features

[dependencies]
ln-types = { version = "0.2.1", default-features = false, features = ["std", "alloc", "postgres-types", "node_pubkey_verify", "node_pubkey_recovery", "secp256k1_std", "serde_alloc", "slog_std", "hex-conservative", "parse_arg", "bitcoin-units"] }
default = std

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

std default postgres-types? secp256k1_std? slog_std? = alloc

Affects ln-types::p2p_address, p2p_address::SocketAddrs

alloc serde_alloc? std

Affects p2p_address::NotIpAddr

postgres-types = bytes, postgres-types-real, std
node_pubkey_verify node_pubkey_recovery?

Enables hashes of secp256k1 ^0.29.0

node_pubkey_recovery = node_pubkey_verify

Enables recovery of secp256k1 ^0.29.0

secp256k1_std = std

Enables std of secp256k1 ^0.29.0

serde_alloc = alloc

Enables alloc of serde

serde:

Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.

slog_std = std

Enables std of slog

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.

hex-conservative implicit feature

Enables hex-conservative ^0.2.1

hex-conservative:

A hex encoding and decoding crate with a conservative MSRV and dependency policy

serde serde_alloc?
postgres-types-real postgres-types?

Enables postgres-types

Warning: don't depend on this as a feature!

parse_arg implicit feature

Enables parse_arg

parse_arg:

Traits and implementations for parsing command-line arguments

bitcoin-units implicit feature

Enables bitcoin-units ^0.1.2

bitcoin-units:

Basic Bitcoin numeric units such as amount

secp256k1 node_pubkey_recovery? node_pubkey_verify? secp256k1_std?

Enables secp256k1 ^0.29.0

Affects ln-types::node_pubkey

slog slog_std?
bytes postgres-types?

Enables bytes

Warning: don't depend on this as a feature!