2022-09-07 23:32:08 +00:00
|
|
|
[package]
|
|
|
|
name = "bitcoin"
|
|
|
|
version = "0.29.0"
|
|
|
|
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"]
|
|
|
|
license = "CC0-1.0"
|
|
|
|
homepage = "https://github.com/rust-bitcoin/rust-bitcoin/"
|
|
|
|
repository = "https://github.com/rust-bitcoin/rust-bitcoin/"
|
|
|
|
documentation = "https://docs.rs/bitcoin/"
|
|
|
|
description = "General purpose library for using and interoperating with Bitcoin and other cryptocurrencies."
|
|
|
|
keywords = [ "crypto", "bitcoin" ]
|
|
|
|
readme = "README.md"
|
2022-01-12 03:22:45 +00:00
|
|
|
exclude = ["tests/"]
|
2022-09-07 23:32:08 +00:00
|
|
|
edition = "2018"
|
|
|
|
|
|
|
|
# Please don't forget to add relevant features to docs.rs below
|
|
|
|
[features]
|
|
|
|
default = [ "std", "secp-recovery" ]
|
|
|
|
rand = ["secp256k1/rand-std"]
|
|
|
|
serde = ["actual-serde", "bitcoin_hashes/serde", "secp256k1/serde"]
|
|
|
|
secp-lowmemory = ["secp256k1/lowmemory"]
|
|
|
|
secp-recovery = ["secp256k1/recovery"]
|
2022-10-25 11:35:32 +00:00
|
|
|
bitcoinconsensus-std = ["bitcoinconsensus/std", "std"]
|
2022-07-30 12:22:18 +00:00
|
|
|
rust_v_1_53 = []
|
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.
|
2022-09-05 02:19:28 +00:00
|
|
|
std = ["secp256k1/std", "bitcoin_hashes/std", "bech32/std", "bitcoin-internals/std"]
|
2022-09-07 23:32:08 +00:00
|
|
|
no-std = ["hashbrown", "core2/alloc", "bitcoin_hashes/alloc", "secp256k1/alloc"]
|
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
features = [ "std", "secp-recovery", "base64", "rand", "serde", "bitcoinconsensus" ]
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
|
|
|
[dependencies]
|
2022-09-05 02:19:28 +00:00
|
|
|
bitcoin-internals = { path = "../internals" }
|
2022-09-07 23:32:08 +00:00
|
|
|
bech32 = { version = "0.9.0", default-features = false }
|
|
|
|
bitcoin_hashes = { version = "0.11.0", default-features = false }
|
2022-12-20 10:23:15 +00:00
|
|
|
secp256k1 = { version = "0.25.0", default-features = false, features = ["bitcoin_hashes"] }
|
2022-09-07 23:32:08 +00:00
|
|
|
core2 = { version = "0.3.0", optional = true, default-features = false }
|
|
|
|
|
|
|
|
base64 = { version = "0.13.0", optional = true }
|
2022-10-25 11:35:32 +00:00
|
|
|
bitcoinconsensus = { version = "0.20.2-0.5.0", optional = true, default-features = false }
|
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
|
|
|
hashbrown = { version = "0.8", optional = true }
|
|
|
|
|
|
|
|
[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-12-20 10:23:15 +00:00
|
|
|
secp256k1 = { version = "0.25.0", features = [ "recovery", "rand-std" ] }
|
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"
|
|
|
|
required-features = ["std"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "ecdsa-psbt"
|
|
|
|
required-features = ["std", "bitcoinconsensus"]
|
2022-05-07 20:22:53 +00:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "taproot-psbt"
|
|
|
|
required-features = ["std", "bitcoinconsensus"]
|