How willzhang05/learning-rust works
This repository is a collection of independent Rust learning samples, not one integrated product. Its examples demonstrate FizzBuzz output, tree traversal, N-Queens scaffolding, filesystem event watching, and small system-query/hello-world programs. The main user-to-result pattern is running a standalone example and observing its output; the inotify sample additionally accepts a watched path and prints events. Some samples are incomplete or disconnected at runtime (notably the N-Queens solver call is commented out).
Main entry points: nqueens.rs N-Queens · node.rs Tree traversal · main.rs File watcher
Components 7
Basic examples
- FizzBuzz
fizzbuzz.rs
Algorithm examples
- Tree traversal
node.rs - N-Queens
nqueens.rs
System examples
- File watcher
inotifytest/src/main.rs - Linux inotify
Spec samples
- Sysctl sample
specjson/specjson.rs - Hello-world sample
specjson/src/main.rs
Connections 4
- Tree traversal → Tree traversal: runs DFS
node.rs - N-Queens → N-Queens: prints board
nqueens.rs - N-Queens → N-Queens: recurses; checks validity
nqueens.rs - File watcher → Linux inotify: registers watch; reads events
inotifytest/src/main.rs