near / docs

NEAR Protocol Documentation
https://docs.near.org
Apache License 2.0
150 stars 359 forks source link

Inform about `#[near_bindgen]` now being `#[near]` #1916

Open mikedotexe opened 5 months ago

mikedotexe commented 5 months ago

I'm just finding out about this, as I was curious about the latest release of the Rust SDK.

On the release page, they have a pretty sweet scroll-sideways thingie that shows the before and after in terms of the macro we use above our main struct.

https://github.com/NEAR-DevHub/neardevhub-contract/pull/103/files#diff-9f13e107a206cef254e1111b65cd6e7512f8813899e102040b5dd9dfe81907d6L5

I noticed that it's not updated yet on this page in docs:

https://docs.near.org/sdk/rust/contract-structure/near-bindgen

Might be worth stealing the idea of that comparison thingie. Looks like a lotta good stuff in the new releases!

mikedotexe commented 3 months ago

Lots of other things about the latest Rust SDK that isn't in docs. Community is having a hard time

Screenshot 2024-06-03 at 1 40 49 PM