vimpunk / cratetorrent

A BitTorrent V1 engine library for Rust (and currently Linux)
459 stars 32 forks source link

Can't build due to yanked bitvec dependency #115

Open ansg191 opened 1 year ago

ansg191 commented 1 year ago

This crate depends on bitvec = "0.22" which depends on funty = "1.2", which has been yanked. Because of this, it's currently not possible to build the crate.

It might be worth upgrading to bitvec to 1.0. From my simple skim over, it looks like the only required change would be to flip the type parameters for Bitfield from:

pub type Bitfield = BitVec<Msb0, u8>;

to

pub type Bitfield = BitVec<u8, Msb0>;
muddlebee commented 1 year ago

@ansg191 were you able to run this project to download torrents? I was using the CLI version, not able to do so :/

milahu commented 3 weeks ago

yepp ...

error: failed to select a version for the requirement `funty = "~1.2"`
$ git clone --depth=1 https://github.com/vimpunk/cratetorrent
$ cd cratetorrent
$ cargo generate-lockfile
    Updating crates.io index
error: failed to select a version for the requirement `funty = "~1.2"`
candidate versions found which didn't match: 3.0.0-rc2, 3.0.0-rc1, 2.0.0, ...
location searched: crates.io index
required by package `bitvec v0.22.0`
    ... which satisfies dependency `bitvec = "^0.22"` of package `cratetorrent v0.2.0 (/run/user/1000/tmp.7NV0nb4Jpt/cratetorrent/cratetorrent)`
    ... which satisfies path dependency `cratetorrent` of package `cratetorrent-cli v0.2.0 (/run/user/1000/tmp.7NV0nb4Jpt/cratetorrent/cratetorrent-cli)`
if you are looking for the prerelease package it needs to be specified explicitly
    funty = { version = "3.0.0-rc2" }
perhaps a crate was updated and forgotten to be re-vendored?