nash-io / openlimits

A Rust high performance cryptocurrency trading API with support for multiple exchanges and language wrappers.
http://openlimits.io
BSD 2-Clause "Simplified" License
273 stars 44 forks source link

Cannot build without libgmp #203

Open LegNeato opened 1 year ago

LegNeato commented 1 year ago

Using the following in Cargo.toml:

openlimits = { version = "0.3", default-features = false, features = ["num_bigint"]}

Fails:

rust-bigint-1.2.0/src/lib.rs:36:1
   |
24 | pub type BigInt = gmp::mpz::Mpz;
   | -------------------------------- previous definition of the type `BigInt` here
...
36 | pub type BigInt = num_bigint::BigInt;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `BigInt` redefined here
   |
   = note: `BigInt` must be defined only once in the type namespace of this module