2023-03-01 17:02:06 +11:00
|
|
|
#![doc = include_str!("../README.md")]
|
2023-06-20 12:33:05 -05:00
|
|
|
// only enables the `doc_cfg` feature when the `docsrs` configuration attribute is defined
|
|
|
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
|
|
|
#![cfg_attr(
|
|
|
|
docsrs,
|
|
|
|
doc(html_logo_url = "https://github.com/bitcoindevkit/bdk/raw/master/static/bdk.png")
|
|
|
|
)]
|
2023-01-10 15:10:02 +11:00
|
|
|
#![no_std]
|
2023-05-29 21:54:53 +08:00
|
|
|
#![warn(missing_docs)]
|
|
|
|
|
2023-01-10 15:10:02 +11:00
|
|
|
#[cfg(feature = "std")]
|
|
|
|
#[macro_use]
|
|
|
|
extern crate std;
|
|
|
|
|
2023-02-21 12:38:16 +11:00
|
|
|
#[doc(hidden)]
|
2023-01-10 15:10:02 +11:00
|
|
|
#[macro_use]
|
2023-02-21 12:38:16 +11:00
|
|
|
pub extern crate alloc;
|
2023-01-10 15:10:02 +11:00
|
|
|
|
2020-01-27 22:02:55 +01:00
|
|
|
pub extern crate bitcoin;
|
|
|
|
pub extern crate miniscript;
|
|
|
|
extern crate serde;
|
|
|
|
extern crate serde_json;
|
2021-06-01 16:36:09 +10:00
|
|
|
|
2020-10-13 10:57:40 +02:00
|
|
|
#[cfg(feature = "keys-bip39")]
|
|
|
|
extern crate bip39;
|
|
|
|
|
2020-02-04 11:05:54 +01:00
|
|
|
pub mod descriptor;
|
2020-09-18 16:31:03 +02:00
|
|
|
pub mod keys;
|
2022-10-18 15:25:38 -05:00
|
|
|
pub mod psbt;
|
2020-08-31 10:49:44 +02:00
|
|
|
pub(crate) mod types;
|
2020-02-07 23:22:28 +01:00
|
|
|
pub mod wallet;
|
|
|
|
|
2020-09-22 16:12:09 +02:00
|
|
|
pub use descriptor::template;
|
2021-03-30 16:33:07 +02:00
|
|
|
pub use descriptor::HdKeyPaths;
|
2020-08-31 10:49:44 +02:00
|
|
|
pub use types::*;
|
|
|
|
pub use wallet::signer;
|
2021-04-19 14:16:39 +02:00
|
|
|
pub use wallet::signer::SignOptions;
|
2020-08-07 11:23:01 +02:00
|
|
|
pub use wallet::tx_builder::TxBuilder;
|
2020-12-23 13:48:17 +11:00
|
|
|
pub use wallet::Wallet;
|
2021-01-25 15:13:45 -05:00
|
|
|
|
|
|
|
/// Get the version of BDK at runtime
|
|
|
|
pub fn version() -> &'static str {
|
|
|
|
env!("CARGO_PKG_VERSION", "unknown")
|
|
|
|
}
|
2022-11-03 15:59:38 +08:00
|
|
|
|
|
|
|
pub use bdk_chain as chain;
|
2023-01-10 15:10:02 +11:00
|
|
|
pub(crate) use bdk_chain::collections;
|