winksaville / rust-binance-cli

Automatically sell all assets owned by the user on binance.us except USD, USDT plus a minimum of BNB is kept.
Apache License 2.0
2 stars 6 forks source link

Update to Edition 2021 and bump version to 0.3.0 #7

Closed winksaville closed 2 years ago

winksaville commented 2 years ago

Also update to the latest versions of the dependencies. I used cargo update, cargo upgrades, cargo upgrade and cargo outdated. Outdated did the "best" but it didn't update [dev-dependencies] and [build-dependencies] to the very latest so I manually updated them.

The other goal of the updating to the latest versions was to eliminate the duplicate versions of the same crate. Initially there were a bunch but after updating now cargo tree -d shows there are none!

As you can see I did need to make a minor tweak to binance_signature and have it use new_from_slice as new_varkey has been removed.

Finally, edition 2021 doesn't work on the old nightly and rustfmt is now working again on nightly so back to using the "nightly" toolchain rather and "nightly-2021-03-25". Which also means clippy complained about additional items so fixed those in binance_auto_buy.rs, binance_auto_sell.rs, common.rs and configuration.rs.