X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-invoice%2FCargo.toml;h=129d0f23c3a733b1349b7986971f6ce9e70a163a;hb=8f09e5a7ff464109ca1d7de065f56635c17bd0ac;hp=75d9755ad3fd85c8ae152f2ef0e55380b1b2135d;hpb=4c7be7e137d5ad552bfae481ba1e5e26f34e74f7;p=rust-lightning diff --git a/lightning-invoice/Cargo.toml b/lightning-invoice/Cargo.toml index 75d9755a..129d0f23 100644 --- a/lightning-invoice/Cargo.toml +++ b/lightning-invoice/Cargo.toml @@ -1,23 +1,27 @@ [package] name = "lightning-invoice" description = "Data structures to parse and serialize BOLT11 lightning invoices" -version = "0.4.0" +version = "0.12.0" authors = ["Sebastian Geisler "] documentation = "https://docs.rs/lightning-invoice/" license = "MIT OR Apache-2.0" keywords = [ "lightning", "bitcoin", "invoice", "BOLT11" ] readme = "README.md" +[features] +default = ["std"] +no-std = ["hashbrown", "lightning/no-std", "core2/alloc"] +std = ["bitcoin_hashes/std", "num-traits/std", "lightning/std"] + [dependencies] -bech32 = "0.7" -lightning = { version = "0.0.13", path = "../lightning" } -secp256k1 = { version = "0.20", features = ["recovery"] } -num-traits = "0.2.8" -bitcoin_hashes = "0.9.4" +bech32 = "0.8" +lightning = { version = "0.0.104", 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.13", path = "../lightning", features = ["_test_utils"] } - -[lib] -crate-type = ["cdylib", "rlib"] - +lightning = { version = "0.0.104", path = "../lightning", default-features = false, features = ["_test_utils"] } +hex = "0.3"