Study-Mate
Miaotofu01
你的AI学习搭档:定路线、讲知识、做项目,边学边做,学透一门科目
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ramanasai/dsh-rust-academy
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
An industry-grade Rust curriculum in the left sidebar of DeepSeek Harness. 32 tracks,
640 focused chapters, from fn main to production distributed systems — with
exercises, quizzes, quickbytes, production checklists, reference architectures and
verified links to docs, GitHub repos, papers and conference talks.
Docs, Repo, Paper,
Video.Ctrl/Cmd+Enter run, Ctrl/Cmd+S format, Ctrl/Cmd+/ comment), and a
suggestions palette. Every code block has a Run button and every exercise
offers Open starter in Playground / Run solution; the Playground shows
the chapter it came from with a back link. Runs in the official
play.rust-lang.org sandbox (remote, needs network), or locally in a
sandboxed temp workspace when the local runner is enabled.
Includes a Clippy lint pass, rustfmt formatting, run-as-tests with a
pass/fail summary, parsed diagnostics (severity, error code, location,
compiler suggestions), and an insert-at-cursor suggestions palette seeded
with Rust idioms and the current chapter's crates. Ctrl/Cmd+Enter runs; load
the current chapter's starter or solution in one click.| # | Track | Chapters | Focus |
|---|---|---|---|
| 1 | Rust fundamentals | 20 | Ownership, types, traits, iterators, async basics |
| 2 | Production web services | 8 | axum 0.8, extractors, auth, WebSockets, OpenAPI |
| 3 | Data & persistence | 7 | SQLx, transactions, Redis, object storage, integrity |
| 4 | Microservices & messaging | 8 | tonic/gRPC, Kafka, NATS, outbox, sagas, locks |
| 5 | Process handling & workers | 7 | Worker pools, cancellation, subprocesses, signals |
| 6 | Production & platform | 8 | OTel, config, resilience, Docker, K8s, CI/CD, perf |
| 7 | Rust in depth | 20 | Macros, unsafe, FFI, const generics, Pin, SIMD |
| 8 | Algorithms & problem solving | 20 | Complexity, graphs, DP, strings, interview patterns |
| 9 | Data structures in Rust | 20 | Containers, caches, arenas, lock-free structures |
| 10 | Database internals | 20 | Pages, B+trees, LSM, WAL, MVCC, planning, sharding |
| 11 | Distributed systems | 20 | Raft, consistency, CRDTs, leases, exactly-once |
| 12 | Networking & protocols | 20 | TCP/UDP, HTTP/2, QUIC, TLS, proxies, gRPC internals |
| 13 | Security engineering | 20 | Threat modelling, OIDC, crypto, secrets, supply chain |
| 14 | Testing & quality | 20 | Property tests, fuzzing, mutation, contract, load |
| 15 | Observability & reliability | 20 | Logs, metrics, traces, SLOs, alerting, profiling |
| 16 | Delivery & platform | 20 | CI/CD, containers, Kubernetes, GitOps, releases |
| 17 | Data engineering | 20 | Arrow, Parquet, Polars, CDC, orchestration, quality |
| 18 | Systems programming | 20 | Syscalls, allocators, io_uring, eBPF, WASM, no_std |
| 19 | AI/ML in Rust | 20 | candle, burn, ONNX, embeddings, RAG, serving |
| 20 | Architecture & design | 20 | DDD, hexagonal, CQRS, event sourcing, multi-tenancy |
| 21 | Interview prep | 20 | Rust questions, DSA drills, system design, mocks |
| 22 | Capstone projects | 20 | End-to-end project briefs with acceptance criteria |
| 23 | WASM & frontend | 20 | wasm-bindgen, Leptos, Yew, SSR, edge WASM |
| 24 | Embedded Rust | 20 | embedded-hal, RTIC, Embassy, DMA, power, defmt |
| 25 | Design principles | 20 | Coupling, cohesion, SOLID in Rust, type-driven design, API ergonomics |
| 26 | Engineering craft | 20 | Code review, RFCs, ADRs, debugging, incidents, mentorship, tech writing |
| 27 | Performance engineering | 20 | Profiling, allocation, cache behaviour, latency budgets, capacity |
| 28 | Concurrency patterns | 20 | Actors, CSP, structured concurrency, atomics, lock-free, testing |
| 29 | API design | 20 | REST/RPC/GraphQL, versioning, pagination, errors, SDKs, DX |
| 30 | Debugging & troubleshooting | 20 | Reproducers, bisection, traces, core dumps, deadlocks, postmortems |
| 31 | Operating systems | 20 | Processes, scheduling, virtual memory, syscalls, filesystems, containers |
| 32 | Compilers & language internals | 20 | Lexing, parsing, type checking, IR, rustc internals, codegen |
| Slot | Registration |
|---|---|
sidebar.panellist |
id: rust-academy, order: 20, localized label |
main |
key: rust-academy |
The Host half (index.js) is a no-op: the panel needs no Host capability. The Client
module embeds the curriculum as JSON at build time, so there is no fetch, no database
and no filesystem access at runtime. Styles use only --dsw-alias-* theme tokens, so
light and dark themes follow the Harness. UI text is registered in the Client locale
service under the rust-academy namespace; display metadata lives in locale/en.json
with the artwork in icon.svg.
dsh web) with a Web GUI.client.js is committed.git clone https://github.com/ramanasai/dsh-rust-academy.git
Then, from a Harness session (Plugin Manager needs Full access or approval):
plugin_manager install_bundle target=/absolute/path/to/dsh-rust-academy
The bundle is linked from the checkout, so editing client.js changes the source the
profile uses; reinstall or reload the page to pick up a new module generation.
Content lives in src/data/*.mjs — one module per track, plus reference.mjs for the
cheatsheet and blueprints. src/data/index.mjs lists the track order. src/app.js is
the UI template; build.mjs injects the data and writes client.js.
node scripts/validate-data.mjs src/data/web.mjs # validate one track
node build.mjs # regenerate client.js + compiler gate
node build.mjs --no-snippets # skip the gate for a fast local build
node --check client.js # syntax check the artifact
build.mjs also runs a compiler gate over every Rust snippet in the
curriculum: rustfmt (the rustc parser) must accept it, and self-contained
exercise solutions are compiled with rustc. Context-dependent snippets that
legitimately need definitions from earlier sections are recorded in
.snippet-baseline.json; the build fails only on new failures. Refresh the
baseline with node scripts/compiler-gate.mjs --update-baseline, or run
node scripts/compiler-gate.mjs --strict to fail on any failure.
There is also an online content audit that validates chapters one by one — every resource URL, every GitHub repo and every crate name against the live registries:
node scripts/audit-content.mjs # full audit (cached, ~1 minute cold)
node scripts/audit-content.mjs --track web # one track
node scripts/audit-content.mjs --no-network # structure only
Latest result: 640/640 chapters clean, 0 broken links, 0 unknown crates
(16 ACM/CACM links are bot-blocked to automated fetches but valid in a browser).
The generated report is docs/content-audit.md.
The Host half can compile and run single-file programs on this machine instead of
sending code to play.rust-lang.org. It is enabled in this profile by the bundle
patch (cordis.patch.yml → config.enabled: true); set it to false to remove
the route entirely.
How it runs:
mkdtemp under the OS temp dir → write main.rs → rustc --edition 2021 -O
→ run the binary through /bin/sh -c 'ulimit -t 5; exec "$0"' (Linux also sets
ulimit -v).ctx.subprocess (SIGTERM → SIGKILL grace ladder,
scrubbed env, bounded 64 KiB output + 1 MiB spill) and
ctx.sandbox.confine(..., { mode: 'workspace-write' })./rust-academy/status, /rust-academy/run) is authenticated with
ctx.connection.requestRejection and is never exposed as an agent tool.Security caveat: the sandbox confines file writes only. Local programs run as your user and can read files you can read and use the network. Keep the local toggle off for untrusted code; the Playground falls back to the remote sandbox when the local runner is unavailable or fails.
The Client module itself is small (~95 KB): the curriculum (6.5 MB JSON) is
served by the Host at /rust-academy/data.json and loaded lazily when the panel
opens, so it no longer inflates the initial page bundle. Offline-only use of the
panel therefore needs the Host half active.
Each chapter supports: id, title, minutes, level, goal, sections[]
(h/p/list/code/tip), exercise (prompt/starter/hint/solution),
questions[] (MCQ with answer index and explain), quickbytes[],
production[], crates[], github[], pitfall, and resources[] with
kind: docs|repo|paper|video.
| File | Purpose |
|---|---|
package.json |
Bundle manifest: patch, Client module, locale and icon exports |
cordis.patch.yml |
Inserts the rust-academy row into the profile |
index.js |
Host half: lazy curriculum data route + authenticated, sandboxed local Rust runner (opt-in) |
client.js |
Generated Client module: sidebar icon + full panel |
build.mjs |
Assembles client.js from src/app.js + src/data/*.mjs |
src/app.js |
UI template (React without JSX) |
src/data/ |
Curriculum modules and track index |
scripts/validate-data.mjs |
Data-module validator |
scripts/compiler-gate.mjs |
Compiler gate: rustfmt parse + rustc compile of snippets |
scripts/audit-content.mjs |
Online audit: URLs, GitHub repos, crate names, structure |
docs/content-audit.md |
Latest per-chapter audit report |
.snippet-baseline.json |
Known context-dependent snippets accepted by the gate |
locale/en.json |
Plugin Manager title and description |
icon.svg |
Original crab artwork |
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: learning。