Hiding error variants from a library's public error type to prevent dependency updates from becoming breaking changes.
We can add UrdfErrorKind enum or is_* methods that indicate the kind of error if needed, but don't expose dependencies' types directly in the public API.
This reduces public dependencies from 3 (serde, serde-xml-rs, RustyXML) to 1 (serde).
Hiding error variants from a library's public error type to prevent dependency updates from becoming breaking changes. We can add
UrdfErrorKind
enum oris_*
methods that indicate the kind of error if needed, but don't expose dependencies' types directly in the public API.This reduces public dependencies from 3 (
serde
,serde-xml-rs
,RustyXML
) to 1 (serde
).Refs: https://github.com/dtolnay/thiserror/pull/50