rust

rust

dz / rust

Summary

a general place for rust related things. Put rust things here if they don't have a good home yet.

Subgraphs

Node Tree

Nodes

unsound_zoo
content The Unsound Zoo: examples of shooting yourself in the foot with Rust
hyperlink https://github.com/unsound-zoo/unsound-zoo.github.io
tags rust
location knowledge/rust.dz:5

turn_off_dead_code_warning
content #[allow(dead_code)]
tags rust
location knowledge/rust.dz:10

book
content The Rust Book
children book/toc
hyperlink https://doc.rust-lang.org/book
location knowledge/rust_book.dz:16

cargo_watch
content Cargo Watch: Watches over your Cargo project’s source
children cargo_watch_command (example command)
remarks Useful way to auto-recompile rust project on any changes
hyperlink https://crates.io/crates/cargo-watch
tags crates, rust
location knowledge/rust.dz:14

cargo_watch_command
content cargo watch -x build
parents cargo_watch
location knowledge/rust.dz:20

cpal
content Cross-platform Audio I/O library in pure Rust
children tinyaudio (easier to work with than cpal)
hyperlink https://github.com/RustAudio/cpal
tags audio, rust
location knowledge/rust.dz:25

organizing_code_project_structure
content organizing code and project structure
remarks trying to set up VoxBox the "right way"
hyperlink https://rust-classes.com/chapter_4_3
tags rust
location knowledge/rust.dz:30

bringing_paths_into_scope_use
content Bringing Paths into Scope with the use Keyword
hyperlink https://doc.rust-lang.org/book/ch07-04-bringing-paths-into-scope-with-the-use-keyword.html
tags rust
location knowledge/rust.dz:36

mutex_rust
content mutexes in rust (rust reference)
hyperlink https://doc.rust-lang.org/std/sync/struct.Mutex.html
tags threading, rust
location knowledge/rust.dz:41

tinyaudio
content rust bindings to tinyaudio
parents cpal
remarks easier to work with than cpal
hyperlink https://docs.rs/tinyaudio/latest/tinyaudio/
location knowledge/rust.dz:46

checked_mul
content checked_mul()
children wrapping_mul (performs wraparound, needed to prevent panic in my LCG)
hyperlink https://doc.rust-lang.org/std/primitive.u32.html#method.checked_mul
tags rust
location knowledge/rust.dz:53

wrapping_mul
content wrapping_mul()
parents checked_mul
hyperlink https://doc.rust-lang.org/std/primitive.u32.html#method.wrapping_mul
tags rust
location knowledge/rust.dz:58

debug_macro
content debug macro (dbg!)
hyperlink https://doc.rust-lang.org/std/macro.dbg.html
tags debug, rust, macro
location knowledge/rust.dz:65

potential_vcv
content Potential VCV Rack modules: examples of VCV Rack modules written in Rust
remarks Introduced to me by Paolo, who was interested in getting Voxbox into a VCV Rack format.
hyperlink https://github.com/dbonel/potential
tags rust, audio
location knowledge/rust.dz:70

std_iter
content std::iter
parents codestudy/potential/bipolar_iter
hyperlink https://doc.rust-lang.org/std/iter/
tags rust_std, rust
location knowledge/rust.dz:78

std_iter_zip
content std::iter::zip
parents codestudy/potential/bipolar_zip
hyperlink https://doc.rust-lang.org/std/iter/fn.zip.html
tags rust_std, rust
location knowledge/rust.dz:83

std_bufread_lines
content using lines() to read a file line by line
remarks useful when building dagzet in rust
hyperlink https://doc.rust-lang.org/std/io/trait.BufRead.html#method.lines
location knowledge/rust.dz:88

bitwhip
content bitwhip: low latency screen sharing
hyperlink https://github.com/bitwhip/bitwhip
location knowledge/rust.dz:93

large_codebases
content How to organize large Rust codebases
hyperlink https://kerkour.com/rust-how-to-organize-large-workspaces
location knowledge/rust.dz:97

doc_comments
content doc comments in rust (rust by example)
hyperlink https://doc.rust-lang.org/rust-by-example/meta/doc.html
location knowledge/rust.dz:101

clippy_book
content The Clippy Book
hyperlink https://doc.rust-lang.org/clippy/index.html
location knowledge/rust.dz:105

phantom_types
content Phantom Types
hyperlink https://doc.rust-lang.org/rust-by-example/generics/phantom.html
location knowledge/rust.dz:109

as_ref
content as_ref(): Converts this type into a shared reference of the (usually inferred) input type.
hyperlink https://doc.rust-lang.org/std/convert/trait.AsRef.html#tymethod.as_ref
location knowledge/rust.dz:113

2024-12-09 13:18 Found out a better way to unwrap reference to namespace in dagzet using =as_ref()=

Before, I was using a match statment in an Optional type. But, instead you can do: = #+BEGINref().unwrap(); #+END_SRC = used Claude to figure this one out.
string
content Rust String
children string/get
hyperlink https://doc.rust-lang.org/std/string/struct.String.html
location knowledge/rust.dz:118

iter
content iter
parents python/docs/glossary/iterable, std/iter
hyperlink https://doc.rust-lang.org/std/iter/
location knowledge/rust.dz:128

std
content rust standard library
children std/convert, std/iter, std/env, std/ops, std/slice, std/future, std/collections
hyperlink https://doc.rust-lang.org/std/
location knowledge/rust.dz:152

borrow_checker
content the rust borrow checker
children links/four_limitations_rust_borrow_checker, book/toc/10_generic_types_traits_lifetimes/10_3_validating_references_with_lifetimes/borrow_checker
location knowledge/rust.dz:156

comprehensive_rust
content comprehensive_rust
hyperlink https://google.github.io/comprehensive-rust/index.html
location knowledge/rust.dz:169

await
content await: suspend execution until the result of a Future is ready
children javascript/await (same concept), links/four_limitations_rust_borrow_checker/outline/2_async_is_suffering (async_for_all makes an await call)
parents std/future, async_book
hyperlink https://doc.rust-lang.org/std/keyword.await.html
location knowledge/rust.dz:189

async_book
content The Rust Async Book
children await (for more information)
hyperlink https://rust-lang.github.io/async-book/
location knowledge/rust.dz:194

GATS_stabilization
content Rust stabalization of Generic Associated Types in Rust 1.65
children links/four_limitations_rust_borrow_checker/outline/2_async_is_suffering ("Rust recently added the ... Generic Associated Types,,but even those don't seem to help.")
hyperlink https://blog.rust-lang.org/2022/10/28/gats-stabilization.html
location knowledge/rust.dz:207

polonius
content Polonius: a core library that models the borrow check
children links/four_limitations_rust_borrow_checker/discussion
location knowledge/rust.dz:234

embedded_rust
content The embedded rust book
children embedded_rust/toc
location knowledge/rust.dz:244