2022-09-07 23:32:08 +00:00
|
|
|
[package]
|
|
|
|
name = "bitcoin"
|
2023-10-24 04:28:08 +00:00
|
|
|
version = "0.31.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"
|
2023-11-14 22:14:56 +00:00
|
|
|
edition = "2021"
|
2023-11-15 00:54:33 +00:00
|
|
|
rust-version = "1.56.1"
|
2023-02-02 22:26:22 +00:00
|
|
|
exclude = ["tests", "contrib"]
|
2022-09-07 23:32:08 +00:00
|
|
|
|
|
|
|
[features]
|
|
|
|
default = [ "std", "secp-recovery" ]
|
2023-11-28 03:22:24 +00:00
|
|
|
std = ["bech32/std", "hashes/std", "hex/std", "internals/std", "io/std", "secp256k1/std"]
|
2023-10-04 06:09:26 +00:00
|
|
|
rand-std = ["secp256k1/rand-std", "std"]
|
2022-11-14 17:41:56 +00:00
|
|
|
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
|
|
|
|
|
|
|
[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-11-28 03:22:24 +00:00
|
|
|
bech32 = { version = "0.10.0-beta", default-features = false, features = ["alloc"] }
|
|
|
|
hashes = { package = "bitcoin_hashes", version = "0.13.0", default-features = false, features = ["alloc", "io"] }
|
|
|
|
hex = { package = "hex-conservative", version = "0.1.1", default-features = false, features = ["alloc"] }
|
2023-02-20 21:33:51 +00:00
|
|
|
hex_lit = "0.1.1"
|
2023-11-28 02:56:45 +00:00
|
|
|
internals = { package = "bitcoin-internals", version = "0.2.0" }
|
2023-11-28 03:22:24 +00:00
|
|
|
io = { package = "bitcoin-io", version = "0.1", default-features = false, features = ["alloc"] }
|
|
|
|
secp256k1 = { version = "0.28.0", default-features = false, features = ["hashes", "alloc"] }
|
2022-09-07 23:32:08 +00:00
|
|
|
|
2023-08-28 00:02:58 +00:00
|
|
|
base64 = { version = "0.21.3", 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-07-21 00:44:16 +00:00
|
|
|
|
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-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
|
|
|
|
2023-09-29 01:49:45 +00:00
|
|
|
[[example]]
|
|
|
|
name = "sign-tx-segwit-v0"
|
|
|
|
required-features = ["std", "rand-std"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "sign-tx-taproot"
|
|
|
|
required-features = ["std", "rand-std"]
|
|
|
|
|
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"]
|