Emurgo / age-usd

The AgeUSD protocol specifications/smart contracts/off-chain code.
MIT License
66 stars 11 forks source link

failed to select a version for the requirement `elliptic-curve = "^0.5.0"` #5

Open Athanaze opened 3 years ago

Athanaze commented 3 years ago

Both cargo build and cargo run fail with

error: failed to select a version for the requirement elliptic-curve = "^0.5.0" candidate versions found which didn't match: 0.10.6, 0.10.5, 0.10.4, ... location searched: crates.io index required by package ergo-lib v0.5.1 ... which is depended on by `ageusd-cli v0.1.0

I am on the linux kernel 5.13.19-2-MANJARO

with rustc 1.54.0 (a178d0322 2021-07-26)

I did not find the repo for ergo-lib, that's why I am posting the issue here.

Athanaze commented 3 years ago

Ok I tried solving the issue by setting everything to use the latest version of ergo-lib, by updating

but I get a ton of errors like

unresolved import ergo_lib::chain::ergo_box::ErgoBox

I solved some of them by forking

but there are just a ton of stuff that's been moved around so there is a ton of import errors.

For what I understand, this comes from "Changed(BREAKING!): [...] ErgoBox and other types that it uses moved to ergotree_ir crate and re-exported in ergo_lib::ergotree_ir #397;" from the release v0.14.0 of sigma-rust

Help to make all these parts together would be greatly appreciated, I am a bit lost in this deprecated libraries maze haha.