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
278 stars 44 forks source link

Separate supported exchanges by features #186

Closed sixels closed 2 years ago

sixels commented 3 years ago

It would be good to separate the exchanges by features. This would help if someone using the library don't want the Binance support, for example.

# Cargo.toml

[features]
binance = []
coinbase = []

Then lib.rs would be something like

// --snip--
#[cfg(feature = "binance")]
pub mod binance;
#[cfg(feature = "coinbase")]
pub mod coinbase;
notdanilo commented 3 years ago

This is a good suggestion!

notdanilo commented 2 years ago

@sixels openlimits is now separated into different crates: openlimits-nash openlimits-binance openlimits-coinbase

You can use them independently or by using the main openlimits crate.