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

App Storage proc-macro #180

Merged
merged 24 commits into from Oct 20, 2020
Merged

App Storage proc-macro #180

merged 24 commits into from Oct 20, 2020

Conversation

YaronWittenstein
Copy link
Contributor

@YaronWittenstein YaronWittenstein commented Oct 7, 2020

Motivation

This PR implements a proc-macro that takes an App's storage spec (given as a struct)
and auto-generates a friendly Rust Storage API to be consumed by the App's programmer.

This code is part of the svm-sdk but since it's a proc-macro it must be implemented in a separate crate.

More info regarding this restriction can be found here:
Why do proc-macros have to be defined in proc-macro crate?

@YaronWittenstein YaronWittenstein added the enhancement New feature or request label Oct 7, 2020
@YaronWittenstein YaronWittenstein self-assigned this Oct 7, 2020
@YaronWittenstein YaronWittenstein marked this pull request as ready for review October 18, 2020 07:30
@YaronWittenstein YaronWittenstein merged commit 28c2dc7 into master Oct 20, 2020
@YaronWittenstein YaronWittenstein deleted the storage-proc-macro branch October 20, 2020 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants