Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

build: only use borsh re-exported by near-sdk #122

Merged
merged 2 commits into from
Nov 15, 2023
Merged

build: only use borsh re-exported by near-sdk #122

merged 2 commits into from
Nov 15, 2023

Conversation

mooori
Copy link
Contributor

@mooori mooori commented Nov 14, 2023

near-plugins-derive was the only workspace member that depended on borsh. However, it isn’t actually used. Instead borsh re-exported by near-sdk is used, which is considered best practice. Removing the borsh dependency might also prevent using it accidentally (instead of borsh re-exported by near-sdk) in the future.

@mooori mooori marked this pull request as ready for review November 14, 2023 12:06
@mooori mooori requested review from karim-en and birchmd November 14, 2023 12:06
@mooori mooori changed the title build: remove unnecessary dependency build: only use borsh re-exported by near-sdk Nov 14, 2023
Copy link

@birchmd birchmd left a comment

Choose a reason for hiding this comment

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

Aurora Engine uses udeps to catch unused Cargo dependencies. Maybe it makes sense to add it to CI here too.

@mooori
Copy link
Contributor Author

mooori commented Nov 14, 2023

@birchmd thank you for the suggestion! I've opened #123.

@mooori mooori merged commit 102d95b into master Nov 15, 2023
@mooori mooori deleted the rm-borsh-dep branch November 15, 2023 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants