[Report] New Tutorial Repository for developing Near Contracts in Rust

Project Title: New Full Tutorial for Near in Rust.

One-liner: New Tutorial Repository for developing Near Contracts in Rust

Project Summary: : There are many great tutorials about creating NEAR contracts in Rust. This project isn’t intended to be a replacement to any of those. Instead, it will be detailed examples about the features of Rust using NEAR contracts. Several times when the compiler gives an error, a new developer may feel compelled to just try making changes until the error go away.

This tutorial will show all possible implementations for all kinds of features in rust. Including ownership, modules, traits, generics, enums and so on. That way it can work as reference for aspiring rustaceans.

Project Members: Lucas Lemos

Period: Feb 01 → Feb 08 (Brazil)

Extra: Project has the main branch in Brazilian Portuguese, and another in English. Will also create a near-in-minutes video for each one of the lessons (which hopefully will be worthy of the platform).

The following list are the results obtained by me:

  • lesson_1_contract: Mostly for the Near-in-minutes submission. The minimum required for implementing and deploying contracts with rust. Link https://github.com/On0n0k1/Tutorial_NEAR_Rust/tree/English/lesson_1_contract

  • lesson_2_ownership: Detailed examples on how ownership work in function and variable implementations. Link: https://github.com/On0n0k1/Tutorial_NEAR_Rust/tree/English/lesson_2_ownership

  • lesson_3_structs: Detailed examples on structs. How to implement them. How ownership is implemented with them. self, &self and &mut self explained. Link https://github.com/On0n0k1/Tutorial_NEAR_Rust/tree/English/lesson_3_structs

  • lesson_4_modules: Detailed examples on modules. Two ways to use directories as modules. How private imports work. Testing modules. How to organize how modules are available for outside crates. Link: https://github.com/On0n0k1/Tutorial_NEAR_Rust/tree/English/lesson_4_modules

Examples for enums, traits, and more coming next…

2 Likes

Hey @On0n0k1 if you are looking on building your own courses/tutorials/articles please reach out, I feel like we could collaborate. Good job with the current progress already.


TW/TG: @joaquimley
Discord: joaquimley#0579

1 Like

Thanks Joaquimley. I will reach out soon.