bdk/crates/wallet/src/lib.rs

48 lines
1.0 KiB
Rust
Raw Normal View History

#![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]
#![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
pub extern crate bitcoin;
pub extern crate miniscript;
extern crate serde;
extern crate serde_json;
#[cfg(feature = "keys-bip39")]
extern crate bip39;
pub mod descriptor;
pub mod keys;
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;
pub use descriptor::template;
pub use descriptor::HdKeyPaths;
2020-08-31 10:49:44 +02:00
pub use types::*;
pub use wallet::signer;
pub use wallet::signer::SignOptions;
pub use wallet::tx_builder::TxBuilder;
pub use wallet::Wallet;
/// Get the version of BDK at runtime
pub fn version() -> &'static str {
env!("CARGO_PKG_VERSION", "unknown")
}
pub use bdk_chain as chain;
2023-01-10 15:10:02 +11:00
pub(crate) use bdk_chain::collections;