Add Chapter 0: Getting Started#6
Closed
hartsock wants to merge 3 commits into
Closed
Conversation
Maps Python's try/except/None to Rust's Result<T,E>, Option<T>, and the ? operator. Covers custom error types, Option chaining, iterator collect into Result, and the LBYL/EAFP/types comparison. 16 passing example tests, 5 exercises with todo!() stubs. Also fixes ch01 Logger exercise: replaced todo!() in Drop impl with a comment-only stub to avoid double-panic abort in the test runner. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Covers rustup/cargo installation, side-by-side Python vs Rust syntax for variables, functions, strings, control flow, collections, and iterators. Includes a Cargo command cheat sheet mapping to Python equivalents. 11 passing example tests, 5 exercises (multiply, string format, fizzbuzz, iterator map, and a score summarizer). Also adds Ch0 to the course README table of contents. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The old pipeline ran `cargo test --workspace` which fails because exercise crates contain todo!() stubs that panic at runtime. That's by design — students fill them in. New pipeline has 5 jobs, all meaningful: 1. secrets-scan — gitleaks on full history 2. forbidden-patterns — grep for private infra leaks 3. lint — cargo fmt + clippy on entire workspace (exercises have #![allow] for expected warnings from stubs) 4. test-examples — run tests on chapter crates only (not exercises), using cargo metadata to discover crates dynamically 5. build-exercises — compile exercise test binaries without running them, catching type errors and broken scaffolding Also adds rust-cache for faster CI runs and updates branch protection to require all 5 jobs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
hartsock
force-pushed
the
ch02-error-handling
branch
from
April 13, 2026 23:55
437d641 to
364de6d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
let/let mut), functions, string formatting, if/else as expressions, Vec, HashMap, iteratorsTest plan
cargo test -p ch00-getting-started— 11/11 passcargo clippy --workspace -- -D warnings— cleancargo fmt --all -- --check— cleanDepends on #1
🤖 Generated with Claude Code