BitcreditProtocol / E-Bill

Core for Bitcredit project.
https://www.bit.cr/
MIT License
12 stars 2 forks source link

116: remove unused deps and update deps #168

Closed zupzup closed 1 month ago

zupzup commented 1 month ago

This fixes https://github.com/BitcreditProtocol/E-Bill/issues/116, except for libp2p, for which I created https://github.com/BitcreditProtocol/E-Bill/issues/167, because there are a lot of breaking changes, which are subtle to get right and it warrants it's own ticket.

Besides that, I was able to get rid of async-std and futures-timer, by implementing the respective things using tokio. I also removed some unused deps (envy, dotenv, void and utoipa), but left thiserror and anyhow in, despite being unused, since we're going to be using those anyway, when we implement proper error-handling (or, if not, we can remove them then).

Most of the code changes are due to borsh having breaking changes and I was able to remove the Either/Void-type of death with the help of https://github.com/libp2p/rust-libp2p/discussions/2812. :v: