Cargo Features

[dependencies]
inet2_addr = { version = "0.9.0", default-features = false, features = ["all", "serde", "tor", "keygen", "stringly_conversions"] }
default = stringly_conversions

The stringly_conversions feature is set by default whenever inet2_addr is added without default-features = false somewhere in the dependency tree.

all = keygen, lightning_encoding, parse_arg, serde, strict_encoding, stringly_conversions, tor
serde all? = serde_crate, serde_json, serde_yaml, stringly_conversions, toml

Enables serde of secp256k1 ^0.24.2, serde_str_helpers of stringly_conversions, serialize of torut

tor all? = parse_arg, torut
keygen all?

Enables rand-std of secp256k1 ^0.24.2

stringly_conversions default all? serde? = stringly_conversions_crate

Enables stringly_conversions of amplify ^3.13.0

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.

strict_encoding all?

Enables strict_encoding ^0.9.0

lightning_encoding all?
stringly_conversions_crate serde? stringly_conversions

Enables stringly_conversions

torut serde? tor?
parse_arg all? tor?
serde_crate serde?

Enables serde

This strange naming is a workaround for not being able to define required features for a dependency See https://github.com/rust-lang/api-guidelines/issues/180 for the explanation and references.

serde_json serde?
serde_yaml serde?
toml serde?

Enables toml ^0.5