signalapp / poksho

10 stars 12 forks source link

Can't compile because crypto-mac = "^0.7" is missing #1

Open EcoloSweet opened 3 years ago

EcoloSweet commented 3 years ago

Apparently, the crypto-mac crate version 0.7 is now missing from crates.io and it prevents from compiling any project depending on poksho.

Do you have any idea on what to do?

At first I posted the issue on the zkgroup repo since i thought this repo is not maintained... But maybe we can find a workaround to update dependencies?

I'd love to help if there is any possibility to make a pull request here :smiley:

Ref to previous opened issue : https://github.com/signalapp/zkgroup/issues/16

Here is my cargo command output :

user@linux [~/signal/test] $ cargo build
    Blocking waiting for file lock on package cache
    Updating crates.io index
    Updating git repository `https://github.com/whisperfish/libsignal-service-rs`
    Updating git repository `https://github.com/signalapp/libsignal-client`
    Updating git repository `https://github.com/signalapp/zkgroup`
    Updating git repository `https://github.com/signalapp/curve25519-dalek.git`
    Updating git repository `https://github.com/signalapp/curve25519-dalek.git`
    Updating git repository `https://github.com/signalapp/poksho.git`
error: failed to select a version for the requirement `crypto-mac = "^0.7"`
candidate versions found which didn't match: 0.11.1, 0.11.0, 0.10.1, ...
location searched: crates.io index
required by package `hmac v0.7.1`
    ... which is depended on by `poksho v0.7.0 (https://github.com/signalapp/poksho.git?tag=v0.7.0#8bb8c61c)`
    ... which is depended on by `zkgroup v0.7.3 (https://github.com/signalapp/zkgroup?tag=v0.7.3#197c382e)`
    ... which is depended on by `libsignal-service v0.1.0 (https://github.com/whisperfish/libsignal-service-rs#7d6fce5f)`
    ... which is depended on by `libsignal-service-hyper v0.1.0 (https://github.com/whisperfish/libsignal-service-rs#7d6fce5f)`
    ... which is depended on by `presage v0.1.0 (/home/user/signal/presage)`
    ... which is depended on by `test v0.1.0 (/home/user/signal/test)`
EcoloSweet commented 3 years ago

I made this fork, updated dependencies and code so it works again : https://github.com/EcoloSweet/poksho

When code will be ready, I'll submit a pull request (if anyone here...)