4 ms·
Make two crates? rspotify-sync, rspotify-async? Couldn't you perhaps make an async runtime that isn't async and just blocks? That would let you keep only the a
by Laaas 3y ago
Make two crates? rspotify-sync, rspotify-async?
Couldn't you perhaps make an async runtime that isn't async
and just blocks? That would let you keep only the async interface.
- anonymoushn 3y agothat solves the whole problem except the part where the consumer of the library has to deal with async
- hermanradtke 3y agoThe article has a whole section about the problems they ran into with two crates: https://nullderef.com/blog/rust-async-sync/#_duplicating_the_crate https://nullderef.com/blog/rust-async-sync/#_duplicating_the...
- martinky24 3y agoIt's very obvious you did not read the article. This is literally covered.