An open API service indexing awesome lists of open source software.

https://github.com/nickersoft/rust-from-typescript

The unofficial guide to learning Rust for TypeScript developers 🦀
https://github.com/nickersoft/rust-from-typescript

book documentation rust rust-lang typescript web-development

Last synced: about 1 month ago
JSON representation

The unofficial guide to learning Rust for TypeScript developers 🦀

Awesome Lists containing this project

README

          

# Rust From TypeScript

Hey folks! Tyler here. Like many web developers, intrigued by the immense popularity of [Rust](https://www.rust-lang.org/)-based tools nowadays, I recently decided to try my hand at finally learning the language.

However, as more of a visual learner myself, thought it might be easier to understand Rust if I rooted it in what I already know: TypeScript. There's [already an in-progress, paid course](https://rustforjs.dev/) for learning Rust if you have a JavaScript background, but being the impatient person that I am, thought it would be better if I just wrote up my own learnings and posted them here instead.

This repository is a work in progress and is being written as I navigate the [Rust by Example](https://doc.rust-lang.org/stable/rust-by-example/) e-book and conduct my own research. Hope it helps you as much as it is helping me.

**This book assumes you already know TypeScript (or JavaScript) decently well.**

– Ty

---

# Table of Contents

- The Basics
- [Variables & Mutability](content/basics/variables.md)
- [Returning Stuff](content/basics/returning-stuff.md)
- [Error Handling](content/basics/error-handling.md)
- Data Types
- [Cheat Sheet](content/data-types/cheat-sheet.md)
- [Casting](content/data-types/casting.md)
- [Declaring Types](content/data-types/declaring-types.md)
- [Classes](content/data-types/classes.md)
- [Collections](content/data-types/collections.md)
- [Enums](content/data-types/enums.md)
- [Tuples](content/data-types/tuples.md)
- [Optionals](content/data-types/optionals.md)
- Logic Flow
- [What Stays The Same](content/logic-flow/same.md)
- [Infinite Looping](content/logic-flow/loop.md)
- [Matching](content/logic-flow/match.md)
- [Associated Values](content/logic-flow/let.md)
- Rust-Specific Stuff
- [Type Suffixes](content/rust/type-suffixes.md)
- Recipes
- [Printing Data](content/recipes/printing-data.md)
- [Parsing Strings](content/recipes/parsing-strings.md)
- [Destructuring](content/recipes/destructuring.md)