wisespace-io / bitfinex-rs

Bitfinex trading api
Other
57 stars 33 forks source link

Bitfinex cannot be used with Binance due to conflicing versions of `ring` #10

Closed AlexApps99 closed 4 years ago

AlexApps99 commented 4 years ago
error: failed to select a version for `ring`.
    ... required by package `bitfinex v0.4.0`
    ... which is depended on by `testcrate v0.1.0 (/home/test/testcrate)`
versions that meet the requirements `^0.14` are: 0.14.6, 0.14.5, 0.14.4, 0.14.3, 0.14.2, 0.14.1, 0.14.0

the package `ring` links to the native library `ring-asm`, but it conflicts with a previous package which links to `ring-asm` as well:
package `ring v0.16.0`
    ... which is depended on by `binance v0.10.0`
    ... which is depended on by `testcrate v0.1.0 (/home/test/testcrate)`

failed to select a version for `ring` which could resolve this conflict
AlexApps99 commented 4 years ago

I see that the version of ring in this repository is not conflicting, perhaps a patch version could be released with the changes to dependency versions applied

wisespace-io commented 4 years ago

Okay, I can see the problem.

Quick fix is to update your Cargo.toml to use

[dependencies]
binance = "0.10.2"
bitfinex = { git = "https://github.com/wisespace-io/bitfinex-rs.git" }

I never released a bitfinex version with the ring 0.16 version, I will do it later. Thanks for reporting the issue.