We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03e6e81 commit df32c84Copy full SHA for df32c84
CHANGELOG.md
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
7
## [Unreleased]
8
9
+### Misc
10
+#### Added
11
+- Added a function to get the version of BDK at runtime
12
+
13
## [v0.3.0] - [v0.2.0]
14
15
### Descriptor
src/lib.rs
@@ -265,3 +265,8 @@ pub use wallet::address_validator;
265
pub use wallet::signer;
266
pub use wallet::tx_builder::TxBuilder;
267
pub use wallet::Wallet;
268
269
+/// Get the version of BDK at runtime
270
+pub fn version() -> &'static str {
271
+ env!("CARGO_PKG_VERSION", "unknown")
272
+}
0 commit comments