-
Notifications
You must be signed in to change notification settings - Fork 251
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
Introduce near macro #1147
Introduce near macro #1147
Conversation
56ff344
to
df8f9e5
Compare
#[derive(BorshSerialize, BorshDeserialize, NearSchema)] | ||
#[inside_nearsdk] | ||
#[abi(borsh)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Do we need to manually derive Borsh/Schema? I would expect that
#[near]
would also work here - Instead of
#[inside_nearsdk]
, can we add a parameter, so you can just write#[near(crate="crate")]
? This way we will also allow re-embedding near_sdk if necessary
Overall, this looks great to me! I have only one question, but if it would take longer than a day to implement, let's ignore it since everything else is already implemented and looks great! |
Decided to skip it with Vlad for now. Since crate is a keyword and darling can't handle that. It requires a manual attribute parsing |
Resolves #1142