|
|
|
|
|
by cmrdporcupine
476 days ago
|
|
+1 for #1. In general, I would recommend providing non-async alternative APIs, with the async runtime as an option rather than assumed default. Not all of us drink the kool-aid there. And no, I don't mean just providing a "sync" API that uses "block_on" behind the scenes but still uses tokio... Also, for async don't mandate tokio, use the "agnostic" crate to abstract it so people can use alternative runtimes. And yes, don't use anyhow in a library like this. Anyhow is for your internal code, not public libraries/crates. Define a set of error enums, or use thiserror for it if you have to. |
|