You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started looking at the code and something quickly caught my eye: there seem to be room for improvement in the dependencies.
Chrono
This is included in the coinbase sub-crate but never used in the code. I see it's used in binance sub-crate only to get the timestamp in milliseconds. This can be achieved also with the std library:
use std::time::SystemTime;fnmain(){let ts = SystemTime::now().duration_since(SystemTime::UNIX_EPOCH).unwrap().as_millis();println!("{}", ts);}
Reqwest: blocking
Using reqwest with the blocking feature will block the entire thread while waiting for the response from the server. This can kill the performance of the dependent project. I've experienced the complexity of using the async version of reqwest on earlier versions, but seems it's working much better in the latest version.
Tokio: full
This pulls all of tokio while only a few parts are needed in the compilable code, while the others can be moved to [dev-dependencies]
Dotenv
Love the crate, but this is only required for the tests, so why not have it [dev-dependencies]?
Ring
Can't find where it's used 😢
I'd be more than happy to help on improving and building this library. I can do a PR with some of the proposed cleanups if you like.
Regards,
Marc
The text was updated successfully, but these errors were encountered:
Hello there :)
I started looking at the code and something quickly caught my eye: there seem to be room for improvement in the dependencies.
Chrono
This is included in the
coinbase
sub-crate but never used in the code. I see it's used inbinance
sub-crate only to get the timestamp in milliseconds. This can be achieved also with the std library:Reqwest: blocking
Using reqwest with the blocking feature will block the entire thread while waiting for the response from the server. This can kill the performance of the dependent project. I've experienced the complexity of using the async version of reqwest on earlier versions, but seems it's working much better in the latest version.
Tokio: full
This pulls all of tokio while only a few parts are needed in the compilable code, while the others can be moved to
[dev-dependencies]
Dotenv
Love the crate, but this is only required for the tests, so why not have it
[dev-dependencies]
?Ring
Can't find where it's used 😢
I'd be more than happy to help on improving and building this library. I can do a PR with some of the proposed cleanups if you like.
Regards,
Marc
The text was updated successfully, but these errors were encountered: