Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Remove bdk_chain from dev-dependencies #1611

Open
ValuedMammal opened this issue Sep 13, 2024 · 4 comments
Open

[core] Remove bdk_chain from dev-dependencies #1611

ValuedMammal opened this issue Sep 13, 2024 · 4 comments
Labels
dependencies Pull requests that update a dependency file

Comments

@ValuedMammal
Copy link
Contributor

ValuedMammal commented Sep 13, 2024

The reason is to avoid a circular dependency, but it's a bit unclear whether this is actually an issue at the moment

@ValuedMammal ValuedMammal added the dependencies Pull requests that update a dependency file label Sep 13, 2024
@oleonardolima
Copy link
Contributor

I think it'll be hard to do it, as we'll mostly already depend on bdk_testenv which already depends on bdk_chain (just wondering about it for now 🤔)

@evanlinjin
Copy link
Member

@ValuedMammal how would this result in cyclic dependencies? One can't depend on a crate's tests?

@notmandatory
Copy link
Member

notmandatory commented Sep 15, 2024

I suggested this issue since it seems weird that bdk_core has even a test dependency on bdk_chain. It looks like the only reason for the dependency is that the bdk_core doc examples depend on bdk_chain. Is there any reason not to re-write the doc examples or move them to the chain crate?

@oleonardolima
Copy link
Contributor

I suggested this issue since it seems weird that bdk_core has even a test dependency on bdk_chain. It looks like the only reason for the dependency is that the bdk_core doc examples depend on bdk_chain. Is there any reason not to re-write the doc examples or move them to the chain crate?

The test usage in block_id! is being moved to bdk_testenv at #1612, so it won't be an issue anymore. Also, it's weird it depends on bdk_chain::BlockId instead of crate::BlockId 🤔.

I think it's fine to either rewrite the doc examples or move to bdk_chain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

4 participants