by bfLives · 1y ago · 0 comments
1. Why async?
2. Why couple to anyhow instead of using an associated error type?
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.