Closed d3zd3z closed 1 year ago
Try enabling the std
feature:
https://github.com/google/coset/blob/main/src/common/mod.rs#L90-L91
(Reopening as a reminder to update the README to mention the std
feature)
Another option would be to make std the default, and could be explicitly disabled when needed. This seems to be how most crates handle this.
Making std
the default would be a breaking change and necessitate a major version bump, so non-default was better. Hopefully core::error::Error
will stabilise and we can drop the need for the feature in future.
README updated, so closing.
The CoseError doesn't seem to implement the standard Error trait, and it makes this error hard to manage when building other types of errors with other tools, such as thiserror, or anyhow. Even a simple impl line for this should be sufficient:
but this has to be done inside of the coset crate.