Skip to content

chore: clean up electrsd and anyhow dev dependencies#1414

Merged
evanlinjin merged 2 commits intobitcoindevkit:masterfrom
LagginTimes:electrsd_reexport
May 6, 2024
Merged

chore: clean up electrsd and anyhow dev dependencies#1414
evanlinjin merged 2 commits intobitcoindevkit:masterfrom
LagginTimes:electrsd_reexport

Conversation

@LagginTimes
Copy link
Copy Markdown
Contributor

@LagginTimes LagginTimes commented Apr 26, 2024

Description

Reexports electrsd in TestEnv to remove the electrsd dev depedency out of bdk_electrum and bdk_esplora.
Credit to @ValuedMammal for the idea.

Since bitcoind reexports anyhow, this dev dependency was also removed from bdk_electrum, bdk_esplora, and bdk_bitcoind_rpc. bitcoind, bitcoincore_rpc and electrum_client were also reexported for convenience.

Changelog notice

  • Change bdk_testenv to re-export internally used crates.

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

@LagginTimes LagginTimes force-pushed the electrsd_reexport branch 2 times, most recently from ff19ca8 to ec34ad1 Compare April 26, 2024 05:13
@LagginTimes LagginTimes changed the title chore: reexport electrsd in TestEnv chore: remove electrsd and anyhow dev dependencies from electrum and esplora Apr 26, 2024
Copy link
Copy Markdown

@storopoli storopoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not encompass also bitcoind_rpc crate?

[dev-dependencies]
bdk_testenv = { path = "../testenv", default_features = false }
anyhow = { version = "1" }

@LagginTimes
Copy link
Copy Markdown
Contributor Author

Why not encompass also bitcoind_rpc crate?

[dev-dependencies]
bdk_testenv = { path = "../testenv", default_features = false }
anyhow = { version = "1" }

Good point. I had so far only been focusing on esplora and electrum as a result of a Discord discussion, and threw the anyhow stuff together very late last night. I'll apply the same to bitcoind_rpc today.

@LagginTimes LagginTimes force-pushed the electrsd_reexport branch 2 times, most recently from 70e9e01 to eec2ed4 Compare April 26, 2024 16:45
@LagginTimes LagginTimes changed the title chore: remove electrsd and anyhow dev dependencies from electrum and esplora chore: clean up electrsd and anyhow dev dependencies Apr 26, 2024
Copy link
Copy Markdown
Collaborator

@oleonardolima oleonardolima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Copy link
Copy Markdown

@storopoli storopoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK eec2ed4

Copy link
Copy Markdown
Member

@evanlinjin evanlinjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, just a small complaint.

Comment thread crates/bitcoind_rpc/tests/test_emitter.rs Outdated
@LagginTimes LagginTimes requested a review from evanlinjin April 28, 2024 09:11
@notmandatory notmandatory added this to the 1.0.0-alpha milestone Apr 28, 2024
Comment thread crates/testenv/src/lib.rs
@LagginTimes LagginTimes force-pushed the electrsd_reexport branch 4 times, most recently from 7499910 to 9ed2a34 Compare May 3, 2024 06:53
@LagginTimes LagginTimes requested a review from evanlinjin May 3, 2024 07:41
Copy link
Copy Markdown
Collaborator

@oleonardolima oleonardolima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 9ed2a34

Copy link
Copy Markdown

@storopoli storopoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 9ed2a34

@evanlinjin
Copy link
Copy Markdown
Member

Please remember to include the changelog notice in the PR description!

@evanlinjin
Copy link
Copy Markdown
Member

#1414 (comment)

@LagginTimes please complete this!

@LagginTimes LagginTimes force-pushed the electrsd_reexport branch from 9ed2a34 to f6218e4 Compare May 5, 2024 11:28
Copy link
Copy Markdown
Member

@evanlinjin evanlinjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK f6218e4

@evanlinjin evanlinjin merged commit 23538c4 into bitcoindevkit:master May 6, 2024
@notmandatory notmandatory mentioned this pull request May 10, 2024
28 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants