rust-2024-migration
Rust コードを Edition 2024 向けにモダナイズ
新しい edition 機能によってスタイルやコンパイラの期待値が変わると、Rust の移行は難しくなることがあります。このスキルは、Claude、Codex、Claude Code が Rust 2024 のリファクタリング機会と移行手順を特定するのに役立ちます。
自分のエージェントでインストール
このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。
Review the Skillstore skill "rust-2024-migration" from https://skillstore.io/skills/emillindfors-rust-2024-migration.md and its manifest at https://skillstore.io/api/skills/emillindfors-rust-2024-migration/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。
エージェントが読めるリソース
AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。
テストする
「rust-2024-migration」を使用しています。 関数が値を返す前に、ネストされた複数の option チェックを使用している。
期待される結果:
- このスキルは、ネストされた制御フローを let chain の候補として特定します。
- その変更には Rust 1.88 以降と edition 2024 が必要であることを説明します。
- chain によって可読性が低下する場合は、元の形を維持することを推奨します。
「rust-2024-migration」を使用しています。 service trait が dynamic dispatch を使用しないメソッドに async-trait を使用している。
期待される結果:
- このスキルは、object safety が不要な場合に traits 内のネイティブ async functions を提案します。
- boxed dynamic trait objects では async-trait がまだ必要になる可能性があると警告します。
- public API と最小コンパイラサポートを確認するようユーザーに求めます。
「rust-2024-migration」を使用しています。 crate がまだ 2021 edition に設定されている。
期待される結果:
- このスキルは edition 更新チェックリストの概要を示します。
- cargo fix、コンパイラバージョン確認、モダナイズされたパターンの手動レビューを含めます。
- 機械的な移行手順と任意の可読性リファクタリングを分けます。
セキュリティ監査
安全All static findings are false positives caused by Markdown fenced Rust, TOML, and bash examples, not executable Ruby or shell backtick use. The only sensitive-data hit is an example Rust variable named db, not a database file or secret. No prompt injection, exfiltration intent, or unsafe tool use was found in SKILL.md.
リスク要因
⚙️ 外部コマンド (25)
このレポートを共有・引用
バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。
レポートリンクをコピー
https://skillstore.io/skills/emillindfors-rust-2024-migration/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdownバッジ
[](https://skillstore.io/skills/emillindfors-rust-2024-migration?utm_source=security_passport_badge)HTMLバッジ
<a href="https://skillstore.io/skills/emillindfors-rust-2024-migration?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/emillindfors-rust-2024-migration/security.svg" alt="Skillstore security assessment" loading="lazy"></a>埋め込みカード
<iframe src="https://skillstore.io/embed/skills/emillindfors-rust-2024-migration.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学術引用 (APA · BibTeX · CFF)
APA形式の引用
EmilLindfors. (2026). rust-2024-migration security audit report (audit version 4) [Author version 1.0.0]. Skillstore. https://skillstore.io/skills/emillindfors-rust-2024-migration/audits/4BibTeX形式の引用
@techreport{emillindfors-emillindfors-rust-2024-migration-2026,
author = {EmilLindfors},
title = {rust-2024-migration security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/emillindfors-rust-2024-migration/audits/4},
note = {Author version 1.0.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "rust-2024-migration security audit report (audit version 4)"
version: "1.0.0"
type: report
authors:
- name: "EmilLindfors"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/emillindfors-rust-2024-migration/audits/4"
identifiers:
- type: other
value: "skillstore:emillindfors-rust-2024-migration:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore スコア
このスコアの理由 証拠の信頼度: 高作成できるもの
Crate を Rust 2024 にアップグレード
移行前に edition 変更を計画し、想定されるリファクタリングを特定し、最小コンパイラ要件を確認します。
Async Rust コードを簡素化
補助 crate を減らし、モダンな Rust 構文を使用できる async closures と trait パターンを見つけます。
移行 Pull Requests をレビュー
Rust 2024 のリファクタリングが適切で読みやすく、プロジェクトの制約と互換性があるかを確認します。
これらのプロンプトを試す
Review this Rust module and list patterns that could use Rust 2024 features. Focus on let chains, async closures, and match ergonomics.
Create a Rust 2024 migration plan for this crate. Include Cargo.toml changes, compiler version concerns, cargo fix steps, and manual review points.
Review these async trait definitions and explain which can use native async fn in traits. Identify any cases that still require async-trait for dynamic dispatch.
Audit this Rust project for Rust 2024 readiness. Prioritize risky changes, public API impact, test gaps, and refactors that should be split into separate commits.
ベストプラクティス
- 各推奨事項を適用する前に、プロジェクトの minimum supported Rust version を確認してください。
- レビューを容易にするため、edition 移行コミットと任意のスタイルリファクタリングを分けてください。
- Rust 2024 の変更を適用した後に、cargo fix、cargo check、テストを実行してください。
回避
- dynamic dispatch がまだ必要とする場合は、async-trait を置き換えないでください。
- 複雑な条件が読みにくくなる場合は、let chains を適用しないでください。
- downstream users と public API への影響を確認せずに edition を変更しないでください。
よくある質問
このスキルは Rust ファイルを自動的に変更しますか?
このスキルはどの Rust edition を対象にしていますか?
cargo fix を実行してもらえますか?
すべての場所から async-trait を削除しますか?
コンパイラ互換性は自動的に確認されますか?
Claude、Codex、Claude Code はこのスキルを使用できますか?
開発者情報
作成者
EmilLindforsライセンス
MIT
作者バージョン
v1.0.0
Skillstore リビジョン
r1
参照
a06681402992ceae98ba04d54cfd4ab004862696
メンテナンスの新しさ
2026/7/18
利用状況
4 ダウンロード · 179 閲覧
ファイル構成
📄 SKILL.md