X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=lightning-invoice%2FCargo.toml;h=194f5f70e912627aed2123ad1a1d3aa68ea15051;hb=b1550524cfe2689e3743ddfc0a78527d26de8613;hp=47bf9d744dcb91f554a69400521e439759e03f66;hpb=e6c922803f8d1f0303dd8a8f9300e32de55e1fc9;p=rust-lightning diff --git a/lightning-invoice/Cargo.toml b/lightning-invoice/Cargo.toml index 47bf9d74..194f5f70 100644 --- a/lightning-invoice/Cargo.toml +++ b/lightning-invoice/Cargo.toml @@ -1,19 +1,31 @@ [package] name = "lightning-invoice" description = "Data structures to parse and serialize BOLT11 lightning invoices" -version = "0.4.0" +version = "0.14.0" authors = ["Sebastian Geisler "] documentation = "https://docs.rs/lightning-invoice/" license = "MIT OR Apache-2.0" keywords = [ "lightning", "bitcoin", "invoice", "BOLT11" ] readme = "README.md" -[dependencies] -bech32 = "0.7" -secp256k1 = { version = "0.20", features = ["recovery"] } -num-traits = "0.2.8" -bitcoin_hashes = "0.9.4" +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + +[features] +default = ["std"] +no-std = ["hashbrown", "lightning/no-std", "core2/alloc"] +std = ["bitcoin_hashes/std", "num-traits/std", "lightning/std", "bech32/std"] -[lib] -crate-type = ["cdylib", "rlib"] +[dependencies] +bech32 = { version = "0.8", default-features = false } +lightning = { version = "0.0.106", path = "../lightning", default-features = false } +secp256k1 = { version = "0.20", default-features = false, features = ["recovery", "alloc"] } +num-traits = { version = "0.2.8", default-features = false } +bitcoin_hashes = { version = "0.10", default-features = false } +hashbrown = { version = "0.11", optional = true } +core2 = { version = "0.3.0", default-features = false, optional = true } +[dev-dependencies] +lightning = { version = "0.0.106", path = "../lightning", default-features = false, features = ["_test_utils"] } +hex = "0.4"