2014-07-18 13:56:17 +00:00
|
|
|
[package]
|
2014-07-18 19:07:10 +00:00
|
|
|
name = "bitcoin"
|
2022-07-20 05:29:19 +00:00
|
|
|
version = "0.29.0"
|
2014-07-18 13:56:17 +00:00
|
|
|
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"]
|
2015-05-20 18:14:21 +00:00
|
|
|
license = "CC0-1.0"
|
2018-03-05 19:44:44 +00:00
|
|
|
homepage = "https://github.com/rust-bitcoin/rust-bitcoin/"
|
|
|
|
repository = "https://github.com/rust-bitcoin/rust-bitcoin/"
|
2018-04-11 19:13:43 +00:00
|
|
|
documentation = "https://docs.rs/bitcoin/"
|
2015-05-20 18:14:21 +00:00
|
|
|
description = "General purpose library for using and interoperating with Bitcoin and other cryptocurrencies."
|
|
|
|
keywords = [ "crypto", "bitcoin" ]
|
|
|
|
readme = "README.md"
|
2021-12-31 10:46:15 +00:00
|
|
|
exclude = ["./test_data"]
|
2022-05-02 23:02:58 +00:00
|
|
|
edition = "2018"
|
2015-05-20 18:14:21 +00:00
|
|
|
|
2021-07-28 19:38:58 +00:00
|
|
|
# Please don't forget to add relevant features to docs.rs below
|
2018-03-10 14:35:49 +00:00
|
|
|
[features]
|
2021-06-09 10:34:44 +00:00
|
|
|
default = [ "std", "secp-recovery" ]
|
2020-01-09 11:11:49 +00:00
|
|
|
rand = ["secp256k1/rand-std"]
|
2022-05-25 06:41:59 +00:00
|
|
|
serde = ["actual-serde", "bitcoin_hashes/serde", "secp256k1/serde"]
|
2020-09-24 10:59:43 +00:00
|
|
|
secp-lowmemory = ["secp256k1/lowmemory"]
|
2020-10-07 15:46:48 +00:00
|
|
|
secp-recovery = ["secp256k1/recovery"]
|
2018-03-10 14:35:49 +00:00
|
|
|
|
2021-06-09 10:34:44 +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.
|
|
|
|
std = ["secp256k1/std", "bitcoin_hashes/std", "bech32/std"]
|
2021-08-02 07:55:37 +00:00
|
|
|
no-std = ["hashbrown", "core2/alloc", "bitcoin_hashes/alloc", "secp256k1/alloc"]
|
2021-06-09 10:34:44 +00:00
|
|
|
|
2021-07-28 19:38:58 +00:00
|
|
|
[package.metadata.docs.rs]
|
2022-05-25 06:41:59 +00:00
|
|
|
features = [ "std", "secp-recovery", "base64", "rand", "serde", "bitcoinconsensus" ]
|
2021-12-17 12:49:54 +00:00
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
2021-07-28 19:38:58 +00:00
|
|
|
|
2015-03-26 15:44:49 +00:00
|
|
|
[dependencies]
|
2022-07-27 02:03:08 +00:00
|
|
|
bech32 = { version = "0.9.0", default-features = false }
|
2022-06-07 02:39:25 +00:00
|
|
|
bitcoin_hashes = { version = "0.11.0", default-features = false }
|
2022-07-21 00:23:28 +00:00
|
|
|
secp256k1 = { version = "0.24.0", default-features = false, features = ["bitcoin_hashes"] }
|
2021-06-09 10:34:44 +00:00
|
|
|
core2 = { version = "0.3.0", optional = true, default-features = false }
|
2020-01-07 19:27:05 +00:00
|
|
|
|
2022-05-11 00:33:03 +00:00
|
|
|
base64 = { version = "0.13.0", optional = true }
|
2022-08-03 22:21:41 +00:00
|
|
|
bitcoinconsensus = { version = "0.20.2-0.5.0", optional = true }
|
2022-05-25 06:41:59 +00:00
|
|
|
# Do NOT use this as a feature! Use the `serde` feature instead.
|
|
|
|
actual-serde = { package = "serde", version = "1", default-features = false, features = [ "derive", "alloc" ], optional = true }
|
2021-06-09 10:34:44 +00:00
|
|
|
hashbrown = { version = "0.8", optional = true }
|
2019-07-27 07:28:51 +00:00
|
|
|
|
2018-11-10 00:45:00 +00:00
|
|
|
[dev-dependencies]
|
2020-01-23 09:45:59 +00:00
|
|
|
serde_json = "<1.0.45"
|
2018-11-10 00:45:00 +00:00
|
|
|
serde_test = "1"
|
2022-07-20 05:44:19 +00:00
|
|
|
secp256k1 = { version = "0.24.0", features = [ "recovery", "rand-std" ] }
|
2021-01-05 22:01:21 +00:00
|
|
|
bincode = "1.3.1"
|
2021-06-09 10:34:44 +00:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "bip32"
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "handshake"
|
|
|
|
required-features = ["std"]
|
2022-04-04 06:50:08 +00:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "ecdsa-psbt"
|
|
|
|
required-features = ["std", "bitcoinconsensus"]
|