mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
`lightning-invoice` currently has a dependency on the entire `lightning` crate just because it wants to use some of the useful types from it. This is obviously backwards and leads to some awkwardness like the BOLT 11 invoice signing API in the `lightning` crate taking a `[u5]` rather than a `Bolt11Invoice`. This takes one more step, moving the `Features` types from `lightning` to `lightning-types`.
25 lines
641 B
TOML
25 lines
641 B
TOML
[package]
|
|
name = "lightning-types"
|
|
version = "0.1.0"
|
|
authors = ["Matt Corallo"]
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/lightningdevkit/rust-lightning/"
|
|
description = """
|
|
Basic types which are used in the lightning network
|
|
"""
|
|
edition = "2021"
|
|
|
|
[package.metadata.docs.rs]
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[features]
|
|
_test_utils = []
|
|
|
|
[dependencies]
|
|
bitcoin = { version = "0.31", default-features = false }
|
|
# TODO: Once we switch to bitcoin 0.32 drop this explicit dep:
|
|
hex-conservative = { version = "0.2", default-features = false }
|
|
bech32 = { version = "0.9", default-features = false }
|
|
|
|
[lints]
|
|
workspace = true
|