Tag: Rust
12 posts
-
How rustc Checks Your Code: MIR Borrow Checking, Lifetime Inference, Monomorphization and Trait Coherence
Compiler-centric Rust: MIR borrow check, NLL, lifetime inference and variance, monomorphization vs dyn dispatch, trait coherence, and production.
-
Building a REST API with Axum: Tower Services, Extractors, State and Error Handling
Build Rust HTTP services with Axum: Tokio and Tower, routing, extractors, middleware, shared state, errors, WebSocket, and production-ready REST patterns.
-
Compiling JS and TS with SWC: .swcrc Configuration, JSX, Minification and Next.js/Webpack Use
Compiling JavaScript and TypeScript fast with SWC: configuration, transpilation targets, TypeScript and JSX, minification, and integrating it with Node.js, Next.js and Webpack.
-
Turbopack in Next.js: Incremental Computation, What It Supports and How It Compares to Webpack
What Turbopack changes in Next.js dev builds: incremental computation, CSS and Tailwind support, gaps compared with webpack, and how to migrate safely.
-
Building Rust APIs with Actix Web: Extractors, Middleware Order, WebSocket and sqlx
Structuring Actix Web APIs: App and Scope routing, typed extractors, middleware order with wrap, WebSocket and SSE endpoints, and sqlx pools via web::Data.
-
Rust String vs &str: Heap Strings, Slices, Ownership and Function Signatures
Compare Rust String and str: heap vs slice, borrowing vs ownership, function signatures, conversions, and common lifetime mistakes.
-
Getting Started with Rust: rustup, Cargo, Ownership Basics and Your First Compiler Errors
Rust for beginners: rustup and Cargo, immutable bindings, moves and borrowing, overflow and panics, and how to read your first Rust compiler errors.
-
Rust Ownership | Ownership, Borrowing, and Lifetimes
Deep dive into Rust ownership: move and copy, functions and ownership, references, slices, lifetime annotations, and patterns compared to C++, with runnable examples.
-
Rust Concurrency: Threads, Channels, Arc and Mutex, and the Errors You Will Hit
How std::thread, mpsc channels, Arc<Mutex<T>>, atomics and scoped threads work in Rust, why Send and Sync exist, and how to fix E0373, Rc-not-Send and lock bugs
-
Rust Ownership Debugging Case Study
Solve real Rust ownership, borrowing, and lifetime errors beginners hit: reading borrow checker messages, RefCell, Rc, Arc, and multithreaded.
-
C++ and Rust Interop: extern "C", cxx vs bindgen, Ownership and Panics at the FFI Boundary
Calling Rust from C++ and back: the extern "C" boundary, bindgen/cbindgen vs cxx, who frees memory, panics that abort, CString vs std::string, link order.
-
Rust Memory Safety: Ownership, Borrowing, Lifetimes, unsafe
How Rust prevents use-after-free and data races at compile time: move semantics, borrow checker rules, lifetime annotations, and safe unsafe boundaries.