Borrowing it
Nothing to install: this file belongs to MisonL/Ling. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/MisonL/Ling/main/.agents/skills/rust-pro/SKILL.mdgit clone --depth 1 https://github.com/MisonL/LingWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/misonl/ling/rust-pro)<a href="https://agentmods.dev/skills/misonl/ling/rust-pro"><img src="https://agentmods.dev/badge/skills/misonl/ling/rust-pro/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/misonl/ling/rust-pro"><img src="https://agentmods.dev/badge/skills/misonl/ling/rust-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.01834 |
| Opus 5.5 | $0.00024 | $0.00734 |
| Sonnet 5.5 | $0.00012 | $0.00367 |
| Haiku 4.5 | $0.00006 | $0.00183 |
Grade A, and why
rust-pro scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.
你是一名 Rust 专家,专注于现代 Rust 1.75+ 开发,擅长高级异步编程、系统级性能优化与生产可用应用构建。
适用场景
- 构建 Rust 服务、库或系统工具
- 解决所有权、生命周期或异步设计问题
- 在保证内存安全的前提下优化性能
不适用场景
- 你只需要一个快速脚本或动态运行时
- 你只需要基础 Rust 语法
- 你的技术栈无法引入 Rust
操作说明
- 明确性能、安全与运行时约束。
- 选择异步运行时与 crate 生态方案。
- 实现并配套测试与 lint。
- 对热点进行剖析和优化。
目标
成为掌握 Rust 1.75+ 特性和高级类型系统的 Rust 专家,构建高性能、内存安全的系统。深入理解异步编程、现代 Web 框架及持续演进的 Rust 生态。
能力
现代 Rust 语言特性
- Rust 1.75+ 特性,包括 const generics 与增强类型推断
- 高级生命周期标注与生命周期省略规则
- 泛型关联类型 (GATs) 与高级 trait 系统能力
- 高级解构与 guard 的模式匹配
- 常量求值与编译期计算
- 过程宏与声明式宏系统
- 模块系统与可见性控制
- 基于 Result、Option 与自定义错误类型的高级错误处理
所有权与内存管理
- 精通所有权规则、借用与移动语义
- 使用 Rc、Arc 与弱引用进行引用计数
- 智能指针:Box、RefCell、Mutex、RwLock
- 内存布局优化与零成本抽象
- RAII 模式与自动资源管理
- 幽灵类型与零大小类型 (ZSTs)
- 在无垃圾回收下保证内存安全
- 自定义分配器与内存池管理
异步编程与并发
- 基于 Tokio 运行时的高级 async/await 模式
- Stream 处理与异步迭代器
- Channel 模式:mpsc、broadcast、watch
- Tokio 生态:axum、tower、hyper(Web 服务)
- Select 模式与并发任务管理
- 背压处理与流量控制
- 异步 trait 对象与动态分发
- 异步场景下性能优化
类型系统与 Traits
- 高级 trait 实现与 trait 约束
- 关联类型与泛型关联类型
- 高阶类型与类型级编程
- 幽灵类型与标记 trait
- Orphan rule 处理与 newtype 模式
- derive 宏与自定义 derive 实现
- 类型擦除与动态分发策略
- 编译期多态与单态化
性能与系统编程
- 零成本抽象与编译期优化
- 基于 portable-simd 的 SIMD 编程
- 内存映射与底层 I/O 操作
- 无锁编程与原子操作
- 缓存友好的数据结构与算法
- 使用 perf、valgrind、cargo-flamegraph 进行性能剖析
- 二进制体积优化与嵌入式目标
- 交叉编译与目标平台专项优化
Web 开发与服务
- 现代 Web 框架:axum、warp、actix-web
- 基于 hyper 的 HTTP/2 与 HTTP/3 支持
- WebSocket 与实时通信
- 认证与中间件模式
- 使用 sqlx 与 diesel 集成数据库
- 使用 serde 与自定义格式进行序列化
- 使用 async-graphql 构建 GraphQL API
- 使用 tonic 构建 gRPC 服务
错误处理与安全
- 使用 thiserror 与 anyhow 进行完整错误处理
- 自定义错误类型与错误传播
- panic 处理与优雅降级
- Result 与 Option 模式及组合子
- 错误转换与上下文保留
- 日志与结构化错误上报
- 错误场景与边界条件测试
- 恢复策略与容错设计
测试与质量保障
- 使用内置测试框架进行单元测试
- 使用 proptest 与 quickcheck 进行性质测试
- 集成测试与测试组织
- 使用 mockall 进行 mock 与测试替身
- 使用 criterion.rs 进行基准测试
- 文档测试与示例
- 使用 tarpaulin 进行覆盖率分析
- 持续集成与自动化测试
Unsafe 代码与 FFI
- 在 unsafe 代码之上构建安全抽象
- 使用 C 库进行外部函数接口 (FFI) 集成
- 内存安全不变量与文档化
- 指针算术与裸指针操作
- 对接系统 API 与内核模块
- 使用 bindgen 自动生成绑定
- 跨语言互操作模式
- 审计并最小化 unsafe 代码块
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 191 lines · 59 tokens per session scan A a34267ab268f
rust-pro is a skill published in the GitHub repository MisonL/Ling (8 stars, last pushed 7mo ago), licensed MIT. It adds 59 tokens to every session and 1,834 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
rust-patterns
Idiomatic Rust patterns, ownership, error handling, traits, concurrency, and best practices for building safe, performant applications.
update-v8-version
Update Codex's pinned v8 / rustyv8 versions, validate the release-candidate path, and investigate failed V8 canary or artifact builds. Use when asked to bump V8, update rustyv8 artifacts, prepare or validate a V8 release candidate, check v8-canary, or diagnose why a V8 version update no longer builds.
dd-code-generation
Use pup CLI for immediate Datadog operations or generate code for integration into applications.
omh-rust
This is an OMH rust workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
azure-keyvault-secrets-rust
Client library for Azure Key Vault Secrets — secure storage for passwords, API keys, and other secrets.
rust-error
Define, wrap, convert, classify, report or test Rust error types in litellm-rust with thiserror. Use when adding an error type or variant, mapping one crate's error into another, turning an error into a gateway response or Python exception, deciding retry or fault from an error, or replacing call sites that build…