2022-09-07 23:32:08 +00:00
|
|
|
[package]
|
|
|
|
name = "bitcoin"
|
2023-03-07 00:02:15 +00:00
|
|
|
version = "0.30.0"
|
2022-09-07 23:32:08 +00:00
|
|
|
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"]
|
|
|
|
license = "CC0-1.0"
|
|
|
|
repository = "https://github.com/rust-bitcoin/rust-bitcoin/"
|
|
|
|
documentation = "https://docs.rs/bitcoin/"
|
2023-02-02 22:26:22 +00:00
|
|
|
description = "General purpose library for using and interoperating with Bitcoin."
|
|
|
|
categories = ["cryptography::cryptocurrencies"]
|
2022-09-07 23:32:08 +00:00
|
|
|
keywords = [ "crypto", "bitcoin" ]
|
2023-03-22 01:08:48 +00:00
|
|
|
readme = "../README.md"
|
2022-09-07 23:32:08 +00:00
|
|
|
edition = "2018"
|
2023-02-02 22:26:22 +00:00
|
|
|
exclude = ["tests", "contrib"]
|
2022-09-07 23:32:08 +00:00
|
|
|
|
|
|
|
[features]
|
|
|
|
default = [ "std", "secp-recovery" ]
|
2022-11-14 17:41:56 +00:00
|
|
|
rand-std = ["secp256k1/rand-std"]
|
|
|
|
rand = ["secp256k1/rand"]
|
2022-09-20 15:11:35 +00:00
|
|
|
serde = ["actual-serde", "hashes/serde", "secp256k1/serde", "internals/serde"]
|
2022-09-07 23:32:08 +00:00
|
|
|
secp-lowmemory = ["secp256k1/lowmemory"]
|
|
|
|
secp-recovery = ["secp256k1/recovery"]
|
2022-10-25 11:35:32 +00:00
|
|
|
bitcoinconsensus-std = ["bitcoinconsensus/std", "std"]
|
2022-09-07 23:32:08 +00:00
|
|
|
|
|
|
|
# At least one of std, no-std must be enabled.
|
|
|
|
#
|
|
|
|
# The no-std feature doesn't disable std - you need to turn off the std feature for that by disabling default.
|
|
|
|
# Instead no-std enables additional features required for this crate to be usable without std.
|
|
|
|
# As a result, both can be enabled without conflict.
|
2023-03-28 01:16:47 +00:00
|
|
|
std = ["secp256k1/std", "hashes/std", "bech32/std", "internals/std"]
|
|
|
|
no-std = ["core2", "hashes/alloc", "hashes/core2", "secp256k1/alloc"]
|
2022-09-07 23:32:08 +00:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
2023-02-02 22:24:48 +00:00
|
|
|
all-features = true
|
2022-09-07 23:32:08 +00:00
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
|
|
|
[dependencies]
|
2023-06-27 22:57:25 +00:00
|
|
|
internals = { package = "bitcoin-internals", version = "0.2.0" }
|
2022-09-07 23:32:08 +00:00
|
|
|
bech32 = { version = "0.9.0", default-features = false }
|
2023-03-28 01:16:47 +00:00
|
|
|
hashes = { package = "bitcoin_hashes", version = "0.12.0", default-features = false }
|
2023-03-18 22:00:02 +00:00
|
|
|
secp256k1 = { version = "0.27.0", default-features = false, features = ["bitcoin_hashes"] }
|
2023-02-20 21:33:51 +00:00
|
|
|
hex_lit = "0.1.1"
|
2022-09-07 23:32:08 +00:00
|
|
|
|
|
|
|
base64 = { version = "0.13.0", optional = true }
|
2023-06-19 19:24:30 +00:00
|
|
|
# Only use this feature for no-std builds, otherwise use bitcoinconsensus-std.
|
2023-02-20 21:35:25 +00:00
|
|
|
bitcoinconsensus = { version = "0.20.2-0.5.0", default-features = false, optional = true }
|
2023-04-20 22:39:41 +00:00
|
|
|
core2 = { version = "0.3.2", default-features = false, features = ["alloc"], optional = true }
|
2022-09-07 23:32:08 +00:00
|
|
|
# Do NOT use this as a feature! Use the `serde` feature instead.
|
2022-09-13 13:47:21 +00:00
|
|
|
actual-serde = { package = "serde", version = "1.0.103", default-features = false, features = [ "derive", "alloc" ], optional = true }
|
2022-09-07 23:32:08 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-09-13 13:47:21 +00:00
|
|
|
serde_json = "1.0.0"
|
|
|
|
serde_test = "1.0.19"
|
2022-09-08 14:50:24 +00:00
|
|
|
serde_derive = "1.0.103"
|
2022-09-07 23:32:08 +00:00
|
|
|
bincode = "1.3.1"
|
|
|
|
|
2022-12-20 05:19:32 +00:00
|
|
|
[target.'cfg(mutate)'.dev-dependencies]
|
|
|
|
mutagen = { git = "https://github.com/llogiq/mutagen" }
|
|
|
|
|
2022-09-07 23:32:08 +00:00
|
|
|
[[example]]
|
|
|
|
name = "bip32"
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "handshake"
|
2022-11-16 21:16:01 +00:00
|
|
|
required-features = ["std", "rand-std"]
|
2022-09-07 23:32:08 +00:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "ecdsa-psbt"
|
|
|
|
required-features = ["std", "bitcoinconsensus"]
|
2022-05-07 20:22:53 +00:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "taproot-psbt"
|
2022-11-16 21:16:01 +00:00
|
|
|
required-features = ["std", "rand-std", "bitcoinconsensus"]
|