MCPcopy Index your code
hub / github.com/arendjr/rust-for-ts-devs

github.com/arendjr/rust-for-ts-devs @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
70 symbols 91 edges 38 files 28 documented · 40%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Rust for TypeScript developers

Welcome to the rust-for-ts-devs repo! This repo is intended to collect various small lessons about Rust that I can present in courses. As the title indicates, the audience is expected to be familiar with TypeScript, and we will use this TypeScript knowledge as a stepping stone to see where Rust diverges, in hopes to (eventually) become an effective Rust engineer.

This course is not intended to be a comprehensive reference into all things Rust. Even if you complete this course, there will be plenty you don't know yet. If you wish to dive deeper, I can whole-heartedly recommend the Rust Book:

https://doc.rust-lang.org/stable/book/

Or consult any of the other learning materials made available by the Rust community:

https://www.rust-lang.org/learn

How to use this repository

Just open this repository in VS Code and make sure you Rust Analyzer installed.

Then open src/main.rs. It acts as the "ToC" from where you can easily click into any of the lessons.

You can run cargo run to display quiz answers.

Extension points exported contracts — how you extend this code

Add (Interface)
Trimmed version of `std::ops::Add`. [1 implementers]
src/traits.rs

Core symbols most depended-on inside this repo

process_and_print
called by 2
src/function_traits.rs
modify
called by 2
src/borrowing.rs
print
called by 2
src/borrowing.rs
create_struct_with_foo
called by 2
src/structs.rs
process_and_print
called by 2
src/callbacks.rs
divide
called by 2
src/option_and_result.rs
positive_n_result
called by 2
src/option_and_result_conversions.rs
modify_string
called by 1
src/cells.rs

Shape

Function 53
Class 9
Method 6
Enum 1
Interface 1

Languages

Rust100%

Modules by API surface

src/option_and_result_conversions.rs4 symbols
src/lifetimes.rs4 symbols
src/split_examples.rs3 symbols
src/mutability.rs3 symbols
src/copy_trait.rs3 symbols
src/borrowing.rs3 symbols
src/where_clauses.rs2 symbols
src/traits.rs2 symbols
src/structs.rs2 symbols
src/struct_impl.rs2 symbols
src/strings.rs2 symbols
src/references.rs2 symbols

For agents

$ claude mcp add rust-for-ts-devs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact