Skip to main content

rust-modern-apis

Reference for stable Rust APIs added in versions 1.89 through 1.98 (August 2025 - August 2026). Use this skill whenever writing, reviewing, or refactoring Rust code — especially when you notice patterns that were verbose before newer APIs existed, when MSRV allows it, or when the user mentions modernizing Rust code, upgrading MSRV, or using "the latest Rust features". Also trigger when reviewing Rust code for improvements, migrations, or when a user asks "can this be simpler in modern Rust?" Proactively suggest newer APIs when you see patterns like manual UTF-8 truncation, path extension manipulation, advisory file locking via external crates, ignoring `retain` removal results, verbose `try_into().unwrap()` for fixed arrays, `compare_exchange` loops for atomic update, `cfg_if` crate usage, matching `0`/`1` to `bool`, `assert!(matches!(...))` in tests, hand-rolled bit-manipulation idioms like `1 << (BITS - 1 - x.leading_zeros())`, chained `strip_prefix`/`strip_suffix`, `.map(f).unwrap_or_default()`, the `itoa`

跳到安装

来源信息

仓库
bug-ops/claude-plugins
最近来源活动
2026年8月25日 15:14
检测到的 SKILL.md 语言
英语
星标
11
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。