book
solana-program-library
Our great sponsors
book | solana-program-library | |
---|---|---|
553 | 23 | |
11,802 | 2,224 | |
3.4% | 1.7% | |
9.6 | 9.8 | |
3 days ago | 2 days ago | |
Rust | Rust | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
book
-
Learn Rust using puzzle?
You might like Rustlings, which you should probably work through alongside The Book. Rustlings is an interactive learning tool that gives you pieces of Rust code that you need to fix and make compile. It's not really a challenge in the same way as Advent of Code, but it should help to learn the language. Couple that with the book, which is the standard learning resource for Rust, and you should pick up the concepts you are unsure of.
-
I've been writing C# for nearly a decade, but I want to learn how to build programs with Rust. What do I need to change about how I structure my code?
Once you've finished with The Book and possibly Programming Rust, 2nd Edition if you've got the cash for a paid book, read Learning Rust With Entirely Too Many Linked Lists (it helps to solidify what ownership and borrowing mean for data structures) and Rust Design Patterns.
-
Fellow Rust enthusiasts: What "sucks" about Rust?
Firstly, I recommend you read the book. It explains pretty much everything you are confused about.
-
Rust VS. Go
if you want to learn, unambiguously the best resource is "The Book": https://doc.rust-lang.org/book/
-
Anyone from a Typescript/React background who tried out Rust for the 1st time?
If you choose to learn Rust, then I'd strongly recommend reading the first ~15 chapters of https://doc.rust-lang.org/book before getting stuck in to a real project. It covers most of the things you'll likely be unfamilar as TS dev (such as what the Stack and the Heap are, and how ownership semantics work).
-
Programming block?
A good starter would be https://doc.rust-lang.org/book/
-
I wanna be a crab.
The Rust Book provides a bottom up approach to learning the language. From your background, you'll probably be comfortable with a lot of things in it but it's definitely worth reading through to get insight on the unique features of Rust such as the borrow checker, lifetimes, traits, error handling, etc.
-
Introduction to WYD encryption and decryption using Rust
The Rust Programming Language book.
-
Why is Java so popular?
If you can think of a specific DS as an example, maybe Google for a Rust implementation (e.g. "red black tree in rust"). The official book is also very good: https://doc.rust-lang.org/book/
solana-program-library
-
HeliusLabs - NFT Compression
Solana Account Compression Repo
- New Solana Dev Guide
-
SPL token client documentation
For https://github.com/solana-labs/solana-program-library/blob/master/token/js/client/token.js is there an equivalent page with documentation in a similar format as solana-web3.js?
-
Building a simple on-chain point of sale with Solana, Anchor and React
I initially started reading the code on the Solana Program Library and experimenting but decided to go with Anchor just get started building something more quickly.
- Too late
-
Best resources to learn Rust?
If you are like me, you learn best from examples. So I would advise you to look primarily at existing code on github. To give you motivation, you should pick a small project you want to implement. There are a lot of github repositories with examples, for example in the tide repository (tide is a web server framework). building these examples, tweaking them, can already help you get a feel for how things work with very little effort. Of course there are also examples for solana smart contracts.
What are some alternatives?
rust-by-example - Learn Rust with examples (Live code editor included)
Rustlings - :crab: Small exercises to get you used to reading and writing Rust code!
nomicon - The Dark Arts of Advanced and Unsafe Rust Programming
github-cheat-sheet - A list of cool features of Git and GitHub.
rust-raspberrypi-OS-tutorials - :books: Learn to write an embedded OS in Rust :crab:
tour_of_rust - A tour of rust's language features
too-many-lists - Learn Rust by writing Entirely Too Many linked lists
sqlx - 🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, SQLite, and MSSQL.
rust - Empowering everyone to build reliable and efficient software.
Rust-Full-Stack - Rust projects here are easy to use. There are blog posts for them also.
crates.io - The Rust package registry
tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...