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: Mar 01 → Mar 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:
Week 05
- In the previous week, I shared a post about my free course about NEAR Dapps in Rust. Lecture is in brazilian portuguese. It was shared in twitter, linkedin and some reddit forums. One person subscribed. I contacted this developer and had a 2-hour session teaching him about the NEAR protocol, the platform, shared links of information related to development and, in the final hour, showed him how to implement a simple rust contract, run unit tests, deploy and run the functions.
- Met with a developer interested in learning about rust. Gave a summary about developing in the language, and some instructions on topics that are very useful to know. Including issues that one should be weary about that aren’t common in most popular languages out there.
- Participated in NEAR University AMA (mar 04). Showed my chess game submission that granted my NCD. Discussed the issues that I had while developing it. And shared some ideas for dapps acquired from developing this project.
- Decided on the subjects of lessons 5 to 8 of
Tutorial_NEAR_Rust
:- Lesson 5 will be about rust macros. What they are. Some of the most useful ones a developer should know. But not how to create macros.
- Lesson 6 will be about rust enums. The standard enums:
Option
andResult
. Custom enums. Match instructions. How to create a very compact error system using enums. What is the?
operator. - Lesson 7 will be about traits: What traits are. Most used standard traits. How to create traits. Generic Functions.
- Lesson 8 will be about collections. Standard rust collections. NEAR collections. How to use both.
- Created the implementation of lesson 5 code example. Now need to write the readme with the actual lecture. Link:
https://github.com/On0n0k1/Tutorial_NEAR_Rust/blob/main/lesson_5_macro_usage/src/lib.rs
- Studying how to create and manage NFTs in a near Dapp for a later lesson.
- I’m currently sick in the last days of this week. Which is why I unfortunately, wasn’t able as much as I wanted recently. Hopefully I will be better in the next couple of days.