Trying out this Rust thing... let's see how it goes π¦
book/
Notes on the book "The Rust Programming Language", together with code examples.
.
β
βββ ch02-guessing-game/...
βββ ch03-fibonacci/...
βββ ch08-mean-median-mode/...
βββ ch08-pig-latin/...
βββ ch12-grep/...
βββ ch14-add/...
βββ ch14-art/...
βββ ch15-cons-list/...
βββ ch15-mock-object/...
βββ ch15-weak-ref-tree/...
βββ ch16-concurrency/...
βββ ch17-blog/...
βββ ch17-gui/...
βββ ch19-hello-macro/...
βββ ch19-pancakes/...
βββ ch20-hello/...
β
βββ notes.md # complete book notes
clair/
Really simple command line app example, from the Rust CLI working group's book "Command Line Applications in Rust" (CLAiR).
.
βββ grrs/ # super small grep clone ("grass")
βββ src/
βΒ Β βββ lib.rs # find patterns in string content
βΒ Β βββ main.rs # command line interface
βββ tests/
βΒ Β βββ cli.rs # integration tests
βββ Cargo.toml
crust/
Coding along Jon Gjengset's "Crust of Rust" video series.
.
βββ strsplit/
β βββ src/lib.rs # "Crust of Rust: Lifetime Annotations"
β
βββ vecmac/
β βββ src/lib.rs # "Crust of Rust: Declarative Macros"
β
βββ iterators/
β βββ src/lib.rs # "Crust of Rust: Iterators"
β
βββ pointers/
β βββ src/ # "Crust of Rust: Smart Pointers and Interior Mutability"
β βββ lib.rs
β βββ cell.rs # a mutable memory location
β βββ refcell.rs # a mutable memory location with dynamically checked borrow rules
β βββ rc.rs # a single-threaded reference-counting pointer
β
βββ panama/
β βββ src/lib.rs # "Crust of Rust: Channels"
β
βββ orst/
β βββ src/ # "Crust of Rust: Sorting Algorithms"
β βββ lib.rs
β βββ bubblesort.rs
β βββ insertionsort.rs
β βββ selectionsort.rs
β βββ quicksort.rs
β βββ bin/
β βββ bench.rs
β
βββ strtok/
| βββ src/lib.rs # "Crust of Rust: Subtyping and Variance"
β
βββ boks/
β βββ src/main.rs # "Crust of Rust: The Drop Check"
β
βββ atomics/
βββ src/main.rs # "Crust of Rust: Atomics and Memory Ordering"
learn-wgpu/
Following the "Learn Wgpu" guide on using gfx-rs
's wgpu
library.
.
βββ src/
βΒ Β βββ main.rs # main code, interacts with the core objects of WebGPU
βΒ Β βββ texture.rs # creation of textures from images and of depth textures
βΒ Β βββ shader.wgsl # shader code, written in WGSL (WebGPU Shading Language)
βββ Cargo.toml
lrtdw/
Following Cliff L. Biffle's unsafe
-first approach to "Learn Rust the Dangerous Way" (LRtDW) series of articles.
.
βββ nbody-c/
β βββ main.c # reference C code, unchanged
β
βββ nbody-rs/
β βββ src/
β βΒ Β βββ main.rs # Rust code, following LRtDW
β βββ Cargo.toml
β
β make.py # build script
lrwetmll/
Following "Learn Rust With Entirely Too Many Linked Lists" chapters.
.
βββ lists/
βββ src/
βΒ Β βββ first.rs # ch. 2, a bad singly-linked stack
βΒ Β βββ second.rs # ch. 3, an ok singly-linked stack
βΒ Β βββ third.rs # ch. 4, a persistent singly-linked stack
βΒ Β βββ fourth.rs # ch. 5, a bad but safe doubly-linked deque
βΒ Β βββ fifth.rs # ch. 6, an unsafe singly-linked queue
βΒ Β βββ lib.rs
βββ Cargo.toml
rusty-journal/
Implementation of Microsoft Learn's "Build a command-line to-do list program" module.
.
βββ src/
β βββ cli.rs # command-line interface using structopt
β βββ main.rs
β βββ tasks.rs # add, complete and list tasks using serde
βββ Cargo.toml
wasm/
Implementation of Conway's Game of Life, following the Rust and WebAssembly working group's "Rust Wasm Book".
.
βββ game-of-life/
βββ src/ # Rust code with Wasm bindings
βΒ Β βββ lib.rs
βΒ Β βββ utils.rs
βββ www/ # JavaScript code using the generated WebAssembly
βΒ Β βββ index.js
βΒ Β βββ index.html
βΒ Β βββ bootstrap.js
βΒ Β βββ package.json
βΒ Β βββ webpack.config.js
βββ Cargo.toml