hyperlight-dev / hyperlight-dev/hyperlight
Consider using `thiserror` instead of `anyhow` in `hyperlight_common`
Open
help-wanted
lifecycle/confirmed
- Dominant language
- Rust
- Stars
- 4.7k
- Forks
- 208
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 47
Description
`hyperlight_common` is using `anyhow` (https://github.com/hyperlight-dev/hyperlight/blob/b9c67fb7450cfebbd47918b979a97cfa447c43be/src/hyperlight_common/Cargo.toml#L19) for its errors, which is probably not the most appropriate with it being a library. We should consider refactoring `hyperlight_common` to use `thiserror` like we do in `hyperlight_host` (https://github.com/hyperlight-dev/hyperlight/blob/b9c67fb7450cfebbd47918b979a97cfa447c43be/src/hyperlight_host/src/error.rs#L49).
Contributor guide
Assessment
This issue has not been assessed yet.