Skip to content

Commit

Permalink
test: fix example cargo config
Browse files Browse the repository at this point in the history
  • Loading branch information
notmandatory committed Oct 11, 2024
1 parent e624074 commit f26e056
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 20 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ tracing-subscriber = { version = "0.3.18", features = ["env-filter", "serde_json
[dev-dependencies]
assert_matches = "1.5.0"
anyhow = "1.0.89"
bdk_electrum = { version = "0.19.0"}
rustls = "0.23.14"

[[example]]
name = "bdk_sqlx_postgres"
path = "examples/bdk_sqlx_postgres.rs"
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ This crate is still **EXPERIMENTAL** do not use with mainnet wallets.
4. Run tests, must use a single test thread since we reuse the postgres db:
```
cargo test -- --test-threads=1
```
5. Run example:
```
cargo run --example bdk_sqlx_postgres
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use bdk_sqlx::Store;
use bdk_wallet::bitcoin::secp256k1::Secp256k1;
use bdk_wallet::bitcoin::Network;
use bdk_wallet::{KeychainKind, PersistedWallet, Wallet};
use better_panic::Settings;
use rustls::crypto::ring::default_provider;
use tracing_subscriber::layer::SubscriberExt;
use tracing_subscriber::util::SubscriberInitExt;
Expand Down Expand Up @@ -36,10 +35,6 @@ async fn main() -> anyhow::Result<()> {
.install_default()
.expect("Failed to install rustls default crypto provider");

Settings::debug()
.most_recent_first(false)
.lineno_suffix(true)
.install();
tracing_subscriber::registry()
.with(EnvFilter::new(std::env::var("RUST_LOG").unwrap_or_else(
|_| {
Expand Down
15 changes: 0 additions & 15 deletions examples/bdk_sqlx_postgres/Cargo.toml

This file was deleted.

0 comments on commit f26e056

Please sign in to comment.