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" ]
|
2024-02-15 03:35:29 +00:00
|
|
|
std = ["base58/std", "bech32/std", "hashes/std", "hex/std", "internals/std", "io/std", "secp256k1/std", "units/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"]
|
2023-08-08 08:47:05 +00:00
|
|
|
serde = ["actual-serde", "hashes/serde", "secp256k1/serde", "internals/serde", "units/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]
|
2024-02-25 21:43:46 +00:00
|
|
|
base58 = { package = "base58ck", version = "0.1.0", default-features = false }
|
2024-02-26 04:31:51 +00:00
|
|
|
bech32 = { version = "0.11.0", default-features = false, features = ["alloc"] }
|
2023-11-28 03:22:24 +00:00
|
|
|
hashes = { package = "bitcoin_hashes", version = "0.13.0", default-features = false, features = ["alloc", "io"] }
|
2024-02-27 22:56:27 +00:00
|
|
|
hex = { package = "hex-conservative", version = "0.2.0", 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" }
|
2024-02-17 22:39:28 +00:00
|
|
|
io = { package = "bitcoin-io", version = "0.1.1", default-features = false, features = ["alloc"] }
|
2023-11-28 03:22:24 +00:00
|
|
|
secp256k1 = { version = "0.28.0", default-features = false, features = ["hashes", "alloc"] }
|
2023-08-08 08:47:05 +00:00
|
|
|
units = { package = "bitcoin-units", version = "0.1.0", default-features = false, features = ["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-12-01 21:50:51 +00:00
|
|
|
ordered = { version = "0.2.0", optional = true }
|
2023-06-19 19:24:30 +00:00
|
|
|
# Only use this feature for no-std builds, otherwise use bitcoinconsensus-std.
|
2024-03-12 01:04:32 +00:00
|
|
|
bitcoinconsensus = { version = "0.105.0+25.1", 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"]
|
2024-02-05 06:50:52 +00:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "sighash"
|