zerocopy Crate 变更审查
zerocopy-review
审查对 google/zerocopy 的 zerocopy crate 和 derive crate 的拟议变更。适用于拉取请求、补丁或 diff 审查,审查发现应考虑 zerocopy 的正确性、兼容性、测试、可维护性、已知会阻塞合并的占位符以及仓库风格要求。
- License 许可
- Apache-2.0
- 所属仓库
- google/zerocopy
- 最近更新
- 2026-11-15
- Stars
- ★ 2.6k
- Forks
- 195
01 前言 Front Matter
- name
- zerocopy-review
- description
- Review proposed changes to google/zerocopy's zerocopy crate and derive crate. Use for pull-request, patch, or diff review where findings should account for zerocopy's correctness, compatibility, testing, maintainability, known merge-blocking placeholders and repository-style requirements.
03 SKILL.md 正文
Zerocopy Code Review
Apply the repository-scoped instructions for the zerocopy/ subtree in
addition to this skill.
Establish Context
Do not review a diff in isolation when surrounding context can affect the conclusion. Inspect the relevant definitions, callers, trait bounds, cfg gates, imports, invariants, tests, and existing utilities as needed to establish each finding. Do not assume that a function behaves as its name suggests; inspect its definition or contract when the finding depends on it.
Review Priorities
Prioritize findings in this order when several concerns compete for attention:
- Soundness and security.
- Functional correctness and edge cases.
- API, compatibility, and configuration behavior.
- Test adequacy.
- Maintainability and repository style.
If the review involves unsafe Rust, unsafe APIs or traits, raw pointers, FFI,
layout or validity reasoning, safety comments or # Safety documentation,
soundness analysis, or invariant-bearing abstractions, also use the sibling
unsafe-rust skill. That skill is authoritative for
unsafe-code review methodology; do not reproduce a separate unsafe checklist
here.
Correctness and Maintainability
Check the issues that are relevant to the changed behavior, including:
- panics or failures on valid input;
- unjustified
unwraporexpectcalls; - zero-sized-type and boundary behavior;
- missing or incorrect generic bounds;
- configuration or feature-gate mismatches;
- duplicated logic that should use an existing utility or abstraction;
- surprising complexity or compressed code that obscures behavior;
- manual reimplementations of suitable standard-library, existing dependency, or established ecosystem functionality.
Before suggesting a new dependency, check Cargo.toml and the existing
workspace for an appropriate dependency or utility.
Findings
Report actionable findings, not private chain-of-thought. For each finding:
- identify the affected code;
- state the concrete defect or risk;
- give enough externally checkable reasoning to establish it;
- state the consequence;
- give enough remediation direction for the author to act.
Use BLOCKING for an issue that must be fixed before merge and NIT for an
optional improvement. Provide replacement code when it materially clarifies the
fix; an exact snippet is not required when the remedy is already unambiguous.
<!-- TODO-check-disable -->
TODO Placeholders
TODO intentionally blocks merge in this repository. During an in-progress
review, evaluate the surrounding implementation under the assumption that the
TODO will be resolved and report another finding only if a problem would
remain after that resolution. When evaluating merge readiness, an unresolved
TODO is itself blocking because CI rejects it.
<!-- TODO-check-enable -->
04 同仓库更多 Skills
zerocopy Crate 开发
zerocopy-development
在 google/zerocopy 的 zerocopy crate 及其 derive crate 中开发、修改、构建、测试或验证代码。适用于实现工作、编译器版本门控、生成的宏代码、UI 或编译失败(compile-fail)测试、测试放置、lint 检查、特性门控(feature-gate)验证和提交前检查。
Unsafe Rust 编写与安全审计
unsafe-rust
以证明级严谨性编写、撰写文档、审查、审计或重新设计 unsafe Rust。适用于 unsafe 代码块和函数、unsafe trait 及其 impl、裸指针、FFI、内联汇编、intrinsics(内建函数)、布局或有效性推理、并发与原子操作、SIMD 与目标特性、分配器、承载不变量的字段、安全注释或 `# Safety` 文档、健全性审查、TCB 审计、生成的 unsafe 代码、安全或行为契约的变更,以及 unsafe 抽象的面向证明的重新设计。
Unsafe Rust 编写与安全审计
unsafe-rust
以证明级严谨性编写、撰写文档、审查、审计或重新设计 unsafe Rust。适用于 unsafe 代码块和函数、unsafe trait 及其 impl、裸指针、FFI、内联汇编、intrinsics(内建函数)、布局或有效性推理、并发与原子操作、SIMD 与目标特性、分配器、承载不变量的字段、安全注释或 `# Safety` 文档、健全性审查、TCB 审计、生成的 unsafe 代码、安全或行为契约的变更,以及 unsafe 抽象的面向证明的重新设计。
Unsafe Rust 代码编写与审计
unsafe-rust
以证明级的严谨性编写、撰写文档、审查或审计 unsafe Rust。适用于 unsafe 块与函数、unsafe trait 与 impl、裸指针、FFI、内联汇编、intrinsics、布局或有效性推理、并发与原子操作、SIMD 与目标特性、分配器、承载不变量的字段、安全注释或 `# Safety` 文档、健全性(soundness)审查、TCB 审计、生成的 unsafe 代码,以及安全性或行为契约的变更。
Unsafe Rust 代码编写与审计
unsafe-rust
以证明级的严谨性编写、撰写文档、审查、审计或重新设计 unsafe Rust。适用于 unsafe 块与函数、unsafe trait 与 impl、裸指针、FFI、内联汇编、intrinsics、布局或有效性推理、并发与原子操作、SIMD 与目标特性、分配器、承载不变量的字段、安全注释或 `# Safety` 文档、健全性(soundness)审查、TCB 审计、生成的 unsafe 代码、安全性或行为契约的变更,以及面向证明的 unsafe 抽象重新设计。
Unsafe Rust 编写与审计
unsafe-rust
以证明级严谨性编写、文档化、审查、审计或重新设计 unsafe Rust。适用于 unsafe 块和函数、unsafe trait 和 impl、裸指针、FFI、内联汇编、intrinsics、布局或有效性推理、并发与原子操作、SIMD 和目标特性、分配器、承载不变量的字段、安全注释或 `# Safety` 文档、健全性审查、TCB 审计、生成的 unsafe 代码、安全或行为契约的变更,以及 unsafe 抽象的面向证明的重新设计。