Skip to content

Commit f26e056

Browse files
committed
test: fix example cargo config
1 parent e624074 commit f26e056

File tree

4 files changed

+10
-20
lines changed

4 files changed

+10
-20
lines changed

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@ tracing-subscriber = { version = "0.3.18", features = ["env-filter", "serde_json
1616
[dev-dependencies]
1717
assert_matches = "1.5.0"
1818
anyhow = "1.0.89"
19+
bdk_electrum = { version = "0.19.0"}
20+
rustls = "0.23.14"
21+
22+
[[example]]
23+
name = "bdk_sqlx_postgres"
24+
path = "examples/bdk_sqlx_postgres.rs"

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ This crate is still **EXPERIMENTAL** do not use with mainnet wallets.
2323
4. Run tests, must use a single test thread since we reuse the postgres db:
2424
```
2525
cargo test -- --test-threads=1
26+
```
27+
5. Run example:
28+
```
29+
cargo run --example bdk_sqlx_postgres
2630
```

examples/bdk_sqlx_postgres/src/main.rs renamed to examples/bdk_sqlx_postgres.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use bdk_sqlx::Store;
88
use bdk_wallet::bitcoin::secp256k1::Secp256k1;
99
use bdk_wallet::bitcoin::Network;
1010
use bdk_wallet::{KeychainKind, PersistedWallet, Wallet};
11-
use better_panic::Settings;
1211
use rustls::crypto::ring::default_provider;
1312
use tracing_subscriber::layer::SubscriberExt;
1413
use tracing_subscriber::util::SubscriberInitExt;
@@ -36,10 +35,6 @@ async fn main() -> anyhow::Result<()> {
3635
.install_default()
3736
.expect("Failed to install rustls default crypto provider");
3837

39-
Settings::debug()
40-
.most_recent_first(false)
41-
.lineno_suffix(true)
42-
.install();
4338
tracing_subscriber::registry()
4439
.with(EnvFilter::new(std::env::var("RUST_LOG").unwrap_or_else(
4540
|_| {

examples/bdk_sqlx_postgres/Cargo.toml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)