Skip to content

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

Merged
mooori merged 2 commits into
masterfrom
rm-borsh-dep
Nov 15, 2023
Merged

build: only use borsh re-exported by near-sdk#122
mooori merged 2 commits into
masterfrom
rm-borsh-dep

Conversation

@mooori
Copy link
Copy Markdown
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 birchmd and karim-en 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
Copy Markdown

@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
Copy Markdown
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
This was referenced Mar 27, 2026
@github-actions github-actions Bot mentioned this pull request Apr 7, 2026
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