Skip to content
binshelf/ rust

Search lessons

Type a Rust, TypeScript or C# term, like Option, null or E0382.

    Compare Rust with

    About

    A free course for TypeScript and C# developers learning Rust, one concept at a time.

    How the examples are checked

    Before anything is published, every Rust example is compiled, checked with clippy and rustfmt, and run. TypeScript examples are type-checked in strict mode and run with Node.js; C# examples are built and run with .NET. When an example shows output, all three languages must print exactly that output. Examples marked "doesn't compile" are checked too: they must fail with the error code shown.

    Language versions: Rust edition 2024, TypeScript 6 in strict mode, C# 14 on .NET 10.

    What this site stores

    Nothing about you is sent to or stored on a server. There are no accounts, analytics, ads or third-party scripts.

    Two settings are kept in your browser's local storage, and never leave it:

    • bs-rust-compare-lang: whether code is compared with TypeScript or C#.
    • bs-rust-progress: which lessons you've marked as done.

    Your light or dark theme choice is shared by all binshelf sites, in a cookie on binshelf.dev.

    Not an official Rust resource

    This site is not affiliated with or endorsed by the Rust Project or the Rust Foundation. "Rust" refers to the programming language. For the official documentation, seeThe Rust Programming Language.