Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Reduce public dependencies #9

Merged
merged 1 commit into from
Jan 28, 2021
Merged

Reduce public dependencies #9

merged 1 commit into from
Jan 28, 2021

Conversation

taiki-e
Copy link
Contributor

@taiki-e taiki-e commented Jan 27, 2021

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).

Refs: dtolnay/thiserror#50

@taiki-e taiki-e marked this pull request as ready for review January 28, 2021 06:35
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.
@taiki-e taiki-e requested a review from OTL January 28, 2021 06:54
Base automatically changed from master to main January 28, 2021 07:48
Copy link
Collaborator

@OTL OTL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼👍🏼👍🏼👍🏼

@taiki-e taiki-e merged commit 5b6eaad into openrr:main Jan 28, 2021
@taiki-e taiki-e deleted the error branch January 28, 2021 08:53
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants