Writing Crates for Complete Beginners - A Tour of Turtle
summary
Turtle is a Rust graphics crate built to teach complete beginners, implemented with a GUI window and turtle that draws as it moves; initial thread-based architecture fails on macOS so it switches to a process-based event loop and preserves the same public API, a rewrite that takes about 59 commits. Tests avoid spawning windows via a test feature disables windows, and helpful compile-time guidance uses the compile_error macro. The crate includes many examples, an examples directory, and plans for WASM, async, and multiple turtles.
AI-written summary · about
chapters (23)
- 0:00Introduction
- 0:58Outline
- 1:35Resources
- 2:07Why Turtle
- 3:01What is Turtle
- 4:10Teaching with Turtle
- 4:57History of Turtle
- 5:27Python Implementation
- 7:45Event Loops
- 11:16Turtle on Mac
- 12:13Two Main Threads
- 15:03Whats Next
- 16:00Contributing Guide
- 16:22Future of Turtle
- 16:51Help
- 18:40Running Cargo Tests
- 20:29Good Documentation
- 21:46Turtle Documentation
- 23:36Examples
- 24:23Documentation
- 24:52Crate Examples
- 25:26Crate Guides
- 26:24Rust API Guidelines
related talks
28mRenaissance of Terminal User Interfaces with Rust
01h 42mIntroduction to Rust (for people who have never used a compiler)
29mLearning Rust by accident
59mRust for C++ developers - What you need to know to get rolling with crates
22mShipping a Solid Rust Crate
27mRust for Freshmen
45mTomorrow I Quit Coffee and Take Up Crabbing!
01h 07m🐍 Python meets the crab 🦀 - Friendship at first sight?
