← 返回列表

rust-skills

💻 提供 179 条 Rust 编码规则,聚焦最佳实践、错误处理与内存管理,并可兼容多种 AI 编码代理。

Rust开发
最佳实践
错误处理
内存管理
AI编程代理
所有权与借用
WebAssembly
Rust库
2⬇️ 0🏷️ master📦 2
rust-skills-master.zip
2.14 MB下载
安装与使用说明

Codex

  1. 先下载 ZIP 包(例如:rust-skills-master.zip)。
  2. 解压后放到 $CODEX_HOME/skills/ 目录下。
  3. 如果没有设置 $CODEX_HOME,通常可放到 ~/.codex/skills/
  4. 确保目录内有 SKILL.md,然后重开会话即可使用。

源码目录预览

├── AGENTS.md
├── CLAUDE.md
├── LICENSE
├── README.md
├── SKILL.md
├── anti-clone-excessive.md
├── anti-collect-intermediate.md
├── anti-empty-catch.md
├── anti-expect-lazy.md
├── anti-format-hot-path.md
├── anti-index-over-iter.md
├── anti-lock-across-await.md
├── anti-over-abstraction.md
├── anti-panic-expected.md
├── anti-premature-optimize.md
├── anti-string-for-str.md
├── anti-stringly-typed.md
├── anti-type-erasure.md
├── anti-unwrap-abuse.md
├── anti-vec-for-slice.md
├── api-builder-must-use.md
├── api-builder-pattern.md
├── api-common-traits.md
├── api-default-impl.md
├── api-extension-trait.md
├── api-from-not-into.md
├── api-impl-asref.md
├── api-impl-into.md
├── api-must-use.md
├── api-newtype-safety.md
├── api-non-exhaustive.md
├── api-parse-dont-validate.md
├── api-sealed-trait.md
├── api-serde-optional.md
├── api-typestate.md
├── async-bounded-channel.md
├── async-broadcast-pubsub.md
├── async-cancellation-token.md
├── async-clone-before-await.md
├── async-join-parallel.md
├── async-joinset-structured.md
├── async-mpsc-queue.md
├── async-no-lock-await.md
├── async-oneshot-response.md
├── async-select-racing.md
├── async-spawn-blocking.md
├── async-tokio-fs.md
├── async-tokio-runtime.md
├── async-try-join.md
├── async-watch-latest.md
├── doc-all-public.md
├── doc-cargo-metadata.md
├── doc-errors-section.md
├── doc-examples-section.md
├── doc-hidden-setup.md
├── doc-intra-links.md
├── doc-link-types.md
├── doc-module-inner.md
├── doc-panics-section.md
├── doc-question-mark.md
├── doc-safety-section.md
├── err-anyhow-app.md
├── err-context-chain.md
├── err-custom-type.md
├── err-doc-errors.md
├── err-expect-bugs-only.md
├── err-from-impl.md
├── err-lowercase-msg.md
├── err-no-unwrap-prod.md
├── err-question-mark.md
├── err-result-over-panic.md
├── err-source-chain.md
├── err-thiserror-lib.md
├── lint-cargo-metadata.md
├── lint-deny-correctness.md
├── lint-missing-docs.md
├── lint-pedantic-selective.md
├── lint-rustfmt-check.md
├── lint-unsafe-doc.md
├── lint-warn-complexity.md
├── lint-warn-perf.md
├── lint-warn-style.md
├── lint-warn-suspicious.md
├── lint-workspace-lints.md
├── mem-arena-allocator.md
├── mem-arrayvec.md
├── mem-assert-type-size.md
├── mem-avoid-format.md
├── mem-box-large-variant.md
├── mem-boxed-slice.md
├── mem-clone-from.md
├── mem-compact-string.md
├── mem-reuse-collections.md
├── mem-smaller-integers.md
├── mem-smallvec.md
├── mem-thinvec.md
├── mem-with-capacity.md
├── mem-write-over-format.md
├── mem-zero-copy.md
├── name-acronym-word.md
├── name-as-free.md
├── name-consts-screaming.md
├── name-crate-no-rs.md
├── name-funcs-snake.md
├── name-into-ownership.md
├── name-is-has-bool.md
├── name-iter-convention.md
├── name-iter-method.md
├── name-iter-type-match.md
├── name-lifetime-short.md
├── name-no-get-prefix.md
├── name-to-expensive.md
├── name-type-param-single.md
├── name-types-camel.md
├── name-variants-camel.md
├── opt-bounds-check.md
├── opt-cache-friendly.md
├── opt-codegen-units.md
├── opt-cold-unlikely.md
├── opt-inline-always-rare.md
├── opt-inline-never-cold.md
├── opt-inline-small.md
├── opt-likely-hint.md
├── opt-lto-release.md
├── opt-pgo-profile.md
├── opt-simd-portable.md
├── opt-target-cpu.md
├── own-arc-shared.md
├── own-borrow-over-clone.md
├── own-clone-explicit.md
├── own-copy-small.md
├── own-cow-conditional.md
├── own-lifetime-elision.md
├── own-move-large.md
├── own-mutex-interior.md
├── own-rc-single-thread.md
├── own-refcell-interior.md
├── own-rwlock-readers.md
├── own-slice-over-vec.md
├── perf-black-box-bench.md
├── perf-chain-avoid.md
├── perf-collect-into.md
├── perf-collect-once.md
├── perf-drain-reuse.md
├── perf-entry-api.md
├── perf-extend-batch.md
├── perf-iter-lazy.md
├── perf-iter-over-index.md
├── perf-profile-first.md
├── perf-release-profile.md
├── proj-bin-dir.md
├── proj-flat-small.md
├── proj-lib-main-split.md
├── proj-mod-by-feature.md
├── proj-mod-rs-dir.md
├── proj-prelude-module.md
├── proj-pub-crate-internal.md
├── proj-pub-super-parent.md
├── proj-pub-use-reexport.md
├── proj-workspace-deps.md
├── proj-workspace-large.md
├── rust-skills-v3.7-beta.5.zip
├── skills-rust-nociassociation.zip
├── test-arrange-act-assert.md
├── test-cfg-test-module.md
├── test-criterion-bench.md
├── test-descriptive-names.md
├── test-doctest-examples.md
├── test-fixture-raii.md
├── test-integration-dir.md
├── test-mock-traits.md
├── test-mockall-mocking.md
├── test-proptest-properties.md
├── test-should-panic.md
├── test-tokio-async.md
├── test-use-super.md
├── type-enum-states.md
├── type-generic-bounds.md
├── type-never-diverge.md
├── type-newtype-ids.md
├── type-newtype-validated.md
├── type-no-stringly.md
├── type-option-nullable.md
├── type-phantom-marker.md
├── type-repr-transparent.md
└── type-result-fallible.md

元数据

Slug: rust-skills

作者: ggg123066

协议: MIT

包大小: 2.14 MB

SHA256: af4fe83e268d5f17e2d949947b7797cffc3d9b3211bf5fc9d254cd9add0e722d