Rust Language and Rust for Blockchain
Parent: Programming Languages · researched 2026-06-16T23:11:40.003Z· 50 sources · 16 concepts · skill lang-rust
Rust language sub-hub of the programming-languages family. Covers both systems Rust and Rust for blockchain/smart contracts. Load specific references under this hub as needed.
Overview
- Rust language sub-hub of the programming-languages family. Covers both systems Rust and Rust for blockchain/smart contracts. Load specific references under this hub as needed. [source]
- Systems Rust: ownership, borrowing, and lifetimes (the borrow checker's rules); move semantics and Copy/Clone; smart pointers (Box, Rc, Arc, RefCell, Cell, Weak) and interior mutability; traits, generics, and the dyn Trait vs impl Trait choice; enums and exhaustive pattern matching; Option and Result with the ? operator, thiserror and anyhow error crates; closures (Fn/FnMut/FnOnce) and iterators (lazy pipelines, collect); concurrency (Send/Sync marker traits, std::thread, Mutex/RwLock, Arc for shared ownership, atomics with orderings, channels, rayon for data parallelism); async/await with tokio (runtimes, spawn, select!, cancellation); macros (macro_rules! declarative macros and proc-macro function/derive/attribute macros); cargo, crates, features, workspaces, editions; no_std and embedded targets; WASM compilation; idioms and anti-patterns; clippy lints. [source]
- Rust for blockchain: Solana + Anchor (the Rust surface of Solana programs, account model in Rust); CosmWasm smart contracts; ink! (Substrate contracts); Substrate/FRAME runtime development. [source]
Children
- Ownership, borrowing, lifetimes and the borrow checker (move semantics, NLL, Polonius) (frontier)
- Smart pointers and interior mutability (Box/Rc/Arc/RefCell/Weak, Rc<RefCell> pattern, deref coercion) (frontier)
- Traits, generics and dispatch (coherence/orphan rule, associated types, monomorphization, dyn vs impl Trait, dyn-compatibility) (frontier)
- Error handling and the ? operator (Option/Result, thiserror vs anyhow, panic-vs-Result) (frontier)
- Closures and iterators (Fn/FnMut/FnOnce, lazy zero-cost iterator chains, IntoIterator) (frontier)
- Concurrency: Send/Sync, threads, Mutex/RwLock/Arc, atomics, channels, rayon (frontier)
- Async/await and tokio (lazy futures, executors, tokio::sync, select!, spawn_blocking, Pin/Unpin, function coloring) (frontier)
- Macros: declarative (macro_rules!) and procedural (syn/quote/proc-macro2) (frontier)
- Cargo toolchain: manifest, features and unification, profiles, workspaces, editions (2015-2024) (frontier)
- no_std and embedded Rust (core/alloc, embedded-hal, Embassy, RTIC, probe-rs) (frontier)
- The WASM target (wasm-bindgen/wasm-pack, wasm32-wasip1/p2, Component Model/WASI) (frontier)
- Rust idioms and anti-patterns (newtype, builder, typestate, illegal-states-unrepresentable, clippy) (frontier)
- Rust-on-Solana programming surface and the Anchor framework (PDAs, CPI, accounts, Borsh, compute budget) (frontier)
- CosmWasm smart contracts (actor model, instantiate/execute/query, cw-storage-plus) (frontier)
- ink! contracts on Polkadot (pallet-revive/PolkaVM migration, SCALE codec) (frontier)
- Substrate/FRAME: building app-chains/runtimes vs deploying contracts (frontier)
Frontier under this node: Async/await and tokio (lazy futures, executors, tokio::sync, select!, spawn_blocking, Pin/Unpin, function coloring), Cargo toolchain: manifest, features and unification, profiles, workspaces, editions (2015-2024), Closures and iterators (Fn/FnMut/FnOnce, lazy zero-cost iterator chains, IntoIterator), Concurrency: Send/Sync, threads, Mutex/RwLock/Arc, atomics, channels, rayon, CosmWasm smart contracts (actor model, instantiate/execute/query, cw-storage-plus), Error handling and the ? operator (Option/Result, thiserror vs anyhow, panic-vs-Result), Macros: declarative (macro_rules!) and procedural (syn/quote/proc-macro2), Ownership, borrowing, lifetimes and the borrow checker (move semantics, NLL, Polonius), Rust idioms and anti-patterns (newtype, builder, typestate, illegal-states-unrepresentable, clippy), Rust-on-Solana programming surface and the Anchor framework (PDAs, CPI, accounts, Borsh, compute budget), Smart pointers and interior mutability (Box/Rc/Arc/RefCell/Weak, Rc<RefCell> pattern, deref coercion), Substrate/FRAME: building app-chains/runtimes vs deploying contracts, The WASM target (wasm-bindgen/wasm-pack, wasm32-wasip1/p2, Component Model/WASI), Traits, generics and dispatch (coherence/orphan rule, associated types, monomorphization, dyn vs impl Trait, dyn-compatibility), ink! contracts on Polkadot (pallet-revive/PolkaVM migration, SCALE codec), no_std and embedded Rust (core/alloc, embedded-hal, Embassy, RTIC, probe-rs)