
Tokio Runtime Explained Workers Tasks and the Scheduler
What the Tokio runtime is made of: worker threads, a task queue, an I/O driver and a timer. See how multi-thread and current-thread flavors differ.
Everything you need to level up your coding skills.

What the Tokio runtime is made of: worker threads, a task queue, an I/O driver and a timer. See how multi-thread and current-thread flavors differ.

Trait bounds say what a generic type must be able to do. Learn the T: Trait syntax, where clauses, multiple bounds and when each form reads better.

A trait is a named set of methods a type promises to provide. See how to define one, implement it, give it default methods and use it as a bound.

Choose between Vec, VecDeque, HashMap, HashSet, BTreeMap and BTreeSet by the operations you need, with complexity, ordering and memory notes.

Install the Rust toolchain with rustup, check that it works, pick a channel and create your first Cargo project, with the three problems that stop most first installs.

Closures capture their environment, and the Fn, FnMut and FnOnce traits describe how. See which one the compiler picks and which bound to write.

A guide to Cargo beyond cargo build: the manifest, dependency versions, features, workspaces, profiles, MSRV, publishing and the errors you will meet along the way.

Iterators are lazy: adapters like map and filter do nothing until a consumer such as collect or sum runs. See the chain, the traits and the common traps.

A practical threat model for Rust code: what the compiler prevents, what it does not, and the checklist of supply chain, input handling, secrets, cryptography and deployment risks.

A package has a Cargo.toml, a crate is one compilation unit, and a module is a namespace inside it. Learn how the three nest and what each one changes.

A guide to testing Rust code: unit tests beside the code, integration tests in tests, doc tests, property tests, snapshots, mocks, async tests and the commands to run them.

Modules organize Rust code and control what is public. Learn mod, pub, use, super, self, file layout and why privacy is by module and not by type.
We send one email when a new post is published. No spam.