containers / ocidir-rs

Low level Rust library for working with OCI (opencontainers) directories
Apache License 2.0
4 stars 3 forks source link

Use thiserror instead of anyhow for error handling #15

Closed ariel-miculas closed 1 week ago

ariel-miculas commented 1 week ago

thiserror is often used in libraries, whereas anyhow is usually used in applications. My use case is that I want to convert from errors returned by this library into errors that PuzzleFS uses, see: https://github.com/project-machine/puzzlefs/blob/master/puzzlefs-lib/src/format/error.rs

cgwalters commented 1 week ago

PR in https://github.com/containers/ocidir-rs/pull/16