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

feat: implement schema for arrays and fix box bounds #36

Merged
merged 1 commit into from Jun 28, 2021

Conversation

austinabell
Copy link
Contributor

@austinabell austinabell commented Jun 25, 2021

  • Fixes Box impl for schema to not require sized
  • implement schema for array [T] types and str
    • The schema name for array I just made Vec<T> but let me know if something else is ideal. I couldn't use Array<T, len> because the type itself doesn't have a size

Edit: Also noticed usize and isize aren't implemented for schema it seems, ideas on if this should be an issue, completed in this PR, or ignored?

Copy link
Member

@ailisp ailisp left a comment

Choose a reason for hiding this comment

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

Looks good!

Edit: Also noticed usize and isize aren't implemented for schema it seems, ideas on if this should be an issue, completed in this PR, or ignored?

It should be added. usize was originally not part of borsh, so does borsh schema. Later usize is added (treat as u64), but didn't add for borsh schema

@ailisp ailisp merged commit 63920c6 into master Jun 28, 2021
@frol frol mentioned this pull request May 31, 2023
@frol frol deleted the austin/box-bounds branch June 2, 2023 20:04
@frol frol mentioned this pull request Jun 6, 2023
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.

None yet

3 participants