Skip to content

Can't use latest git version of rust-bitcoin #4283

@eval-exec

Description

@eval-exec

Hello,

This crate can't be used as git dependency as:

bitcoin = { package = "bitcoin", git = 'https://github.com/rust-bitcoin/rust-bitcoin', branch = "master" }

That will got:

❯ cargo check
    Updating git repository `https://github.com/rust-bitcoin/rust-bitcoin`
    Updating crates.io index
error: failed to select a version for `bitcoin-internals`.
    ... required by package `bitcoin v0.33.0-alpha.0 (https://github.com/rust-bitcoin/rust-bitcoin?branch=master#87889955)`
    ... which satisfies git dependency `bitcoin` of package `bitcoin_test v0.1.0 (/tmp/a/bitcoin_test)`
versions that meet the requirements `^0.4.0` are: 0.4.0

the package `bitcoin` depends on `bitcoin-internals`, with features: `hex` but `bitcoin-internals` does not have these features.


failed to select a version for `bitcoin-internals` which could resolve this conflict

You can reproduce it by:

1. cargo new bitcoin-test
2. cd bitcoin-test
  1. add
[dependencies]
bitcoin = { package = "bitcoin", git = 'https://github.com/rust-bitcoin/rust-bitcoin', branch = "master" }

to Cargo.toml
4. cargo check

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions