zerocopy / v1
AGENTS.md2.6k starsChanged 2 months agoApache-2.0View on GitHub
Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0 <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option. This file may not be copied, modified, or distributed except according to those terms. --> Historical V1 documentation: This document describes the prototype in anneal/v1/. It remains authoritative for using and maintaining V1, but it is not current Anneal design authority. See ../PRINCIPLES.md for current project principles. Known differences are historical and need not be reconciled here.
- Deletes or force-pushes
Trending
Less talk lately.about the whole repository
Who's talking about google/zerocopy
- rust-lang/rust“Tracking Issue for `f16` and `f128` float types”GitHub · Oct 18, 2023 · 132 reactions
- rust-lang/rust“Expose the `Freeze` trait again (unstably) and forbid implementing it manually”GitHub · Feb 23, 2024 · 11 reactions
- rust-random/rand“Tracker: rand 0.9”GitHub · Aug 24, 2021 · 8 reactions
- rust-lang/rust“Expose the Freeze trait again (unstably) and forbid implementing it manually”GitHub · Mar 1, 2024 · 6 reactions
- @rusttrending.bsky.social“google / zerocopy: Zerocopy makes zero-cost memory manipulation effortless. We write `unsafe` so you don’t …”Bluesky · Jul 4, 2026 · 2 likes
The biggest 5 of 26 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 26
Talked about on GitHub, Bluesky and Hacker News (26 times).
On GitHub · 23
- Oct 18, 2023Tracking Issue for `f16` and `f128` float types — rust-lang/rust132 reactions · 47 comments
- Feb 23, 2024Expose the `Freeze` trait again (unstably) and forbid implementing it manually — rust-lang/rust11 reactions · 20 comments
- Aug 24, 2021Tracker: rand 0.9 — rust-random/rand8 reactions · 47 comments
- Mar 1, 2024Expose the Freeze trait again (unstably) and forbid implementing it manually — rust-lang/rust6 reactions · 5 comments
- Jan 12, 2026Allow derives to `allow(non_ascii_idents)` at the non-crate level — rust-lang/rust2 reactions · 5 comments
18 more on GitHub
- Oct 11, 2024Add support for zerocopy trait impls — tokio-rs/bytes2 reactions · 13 comments
- Oct 3, 2026chore(deps): bump the cargo group across 1 directory with 3 updates — splotlabs/splot1 reaction
- Sep 28, 2026chore(deps): bump the cargo group across 1 directory with 10 updates — oxidezap/whatsapp-rust1 reaction · 3 comments
- Sep 19, 2026chore(deps): bump the cargo group across 1 directory with 2 updates — splotlabs/splot1 reaction
- Sep 14, 2026chore(deps): bump the cargo group with 8 updates — oxidezap/whatsapp-rust1 reaction · 3 comments
- Aug 11, 2026build(deps): bump zerocopy from 0.8.55 to 0.8.56 — oxidezap/whatsapp-rust1 reaction · 1 comment
- Aug 7, 2026chore(deps): bump zerocopy from 0.7.35 to 0.8.55 — duketopceo/kurultai1 reaction · 2 comments
- Aug 1, 2026build(deps): bump the cargo group with 4 updates — splotlabs/splot1 reaction
- Jul 21, 2026chore(deps): bump zerocopy from 0.8.54 to 0.8.55 — oxidezap/whatsapp-rust1 reaction · 2 comments
- Jul 18, 2026build(deps): bump the cargo group with 2 updates — splotlabs/splot1 reaction
- Jun 20, 2026build(deps): bump zerocopy from 0.8.50 to 0.8.52 in the cargo group — splotlabs/splot1 reaction
- Jun 13, 2026build(deps): bump the rust-dependencies group across 1 directory with 3 updates — ness-e/Vantadb1 reaction · 1 comment
- Jun 6, 2026chore(deps): bump the patches group across 1 directory with 16 updates — vectordotdev/vrl1 reaction
- Jun 1, 2026chore(deps): bump the patches group with 11 updates — vectordotdev/vrl1 reaction · 1 comment
- Mar 12, 2026Feature request: Publish pre-builts on GitHub — AeneasVerif/aeneas1 reaction · 5 comments
- Nov 5, 2025`undocumented_unsafe_blocks` false positive despite `accept-comment-above-attributes = true` — rust-lang/rust-clippy1 reaction · 2 comments
- Oct 20, 2024Derive macros are unsound — Lokathor/bytemuck1 reaction · 9 comments
- May 6, 2024`unexpected_cfgs` lint doesn't recognize some standard `cfg`s — rust-lang/rust1 reaction · 2 comments
On Bluesky · 2
- Jul 4, 2026google / zerocopy: Zerocopy makes zero-cost memory manipulation effortless. We write `unsafe` so you don’t have to. ★2472… — @rusttrending.bsky.social2 likes and reposts
- Sep 30, 2024google / zerocopy: ★1288 https://github.com/google/zerocopy — @rusttrending.bsky.social1 likes and repost
On Hacker News · 1
- Oct 9, 2024Zerocopy 0.81 point · 1 comment
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository13 other files it gives its agents.
- anneal/AGENTS.mdAGENTS.md
- zerocopy/AGENTS.mdAGENTS.md
- anneal/v1/llms-full.txtllms.txt
- anneal/v1/llms.txtllms.txt
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- zerocopy-developmentSkill
- zerocopy-reviewSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Run unit tests with cargo test --bin cargo-anneal.
- Very specific: line 25
Run all tests (including integration tests) with ./docker.sh cargo test.
- Very specific: line 26
Run a *specific* integration test fixture with ./docker.sh cargo test --test integration fixture_name.
- Very specific: line 72
If you encounter Lean type mismatches (e.g., Application type mismatch), it's often a mismatch between what Aeneas generated for the …
- Very specific: line 74
If a test fails and you want to inspect the generated Lean code, use the ANNEAL_KEEP_TEST_DIR=1 environment variable.
- Very specific: line 85
Look at Funs.lean to see the actual Aeneas parameters, and [TestName].lean to see the Anneal theorem signature.
- Very specific: line 89
If this happens, clear the integration caches.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- Copyright 2026 The Fuchsia Authors
Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
<LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
This file may not be copied, modified, or distributed except according to
those terms. -->Anneal
Historical V1 documentation: This document describes the prototype in
anneal/v1/. It remains authoritative for using and maintaining V1, but it is not current Anneal design authority. See../PRINCIPLES.mdfor current project principles. Known differences are historical and need not be reconciled here.
Note to AI Agents: This document is intended for agents developing the Anneal toolchain itself. If you are an agent using Anneal, please refer to the
llms.txtanddocs/agent/directory instead.
Basic commands
- Run with
cargo run verify. - Run unit tests with
cargo test --bin cargo-anneal. - Run all tests (including integration tests) with
./docker.sh cargo test. - Run a specific integration test fixture with
./docker.sh cargo test --test integration fixture_name.
Tips
- Integration tests are expensive. Prefer
cargo test --bin cargo-annealfor quick verification and iteration, and only run./docker.sh cargo test --test integrationwhen you need to verify the integration tests. - To see the generated Lean code for a module, use
cargo run expand. This will run Aeneas and Anneal but skip verification, outputting the generated.leandefinitions to the terminal.cargo run expand --example abs - To see where intermediate artifacts are placed on disk, run with
RUST_LOG=cargo_anneal=traceas a fallback:
RUST_LOG=cargo_anneal=trace cargo run verify --example absIntegration Testing
- Updating Expected Output: Anneal integration tests (stored in
tests/fixtures/<test_name>) assert against anexpected.stderrorout.txtfile. When you intentionally change the behavior or output of a test, do not edit these files manually. Instead, run the integration test withBLESS=1to automatically overwrite the snapshot files:BLESS=1 ./docker.sh cargo test --test integration fixture_name - Allowing
sorry: While developing and ensuring Aeneas translates Rust correctly, you don't have to write the full Lean proof immediately. You can writesorryinside theproofblock. However, you must pass--allow-sorryto Anneal so the verifier doesn't fail immediately on the unimplemented proof. For integration tests, this is done by adding--allow-sorryto theargsarray in the fixture'sanneal.toml:args = ["verify", "--allow-sorry"]
Running Tests in Docker
Due to the complex toolchains required by Anneal (Rust, Lean 4, Aeneas, and Charon), it is recommended to run integration tests within the provided Docker container. The container handles all system dependencies and provides an isolated environment for the test runner.
The docker.sh script should be used. It handles building and caching the Docker image, mounting compilation cache volumes, mapping local user IDs (so that files are not owned by root on your host), and forwarding environment variables.
Simply prefix your normal Cargo tests with ./docker.sh:
./docker.sh cargo test --test integration
# You can pass standard environment variables. They will be forwarded!
BLESS=1 ./docker.sh cargo test --test integration(Under the hood, this evaluates your path and places you in the same working directory inside the container's bound /workspace volume)
Debugging Tips
- Debugging Aeneas vs Anneal Mismatches
- If you encounter Lean type mismatches (e.g.,
Application type mismatch), it's often a mismatch between what Aeneas generated for the function and what Anneal assumed Aeneas generated in the theorem signature. - Standard integration tests (
./docker.sh cargo test --test integration) delete their temporary output directory (/cache/anneal_target/anneal-test-XXXinside Docker) upon completion. - If a test fails and you want to inspect the generated Lean code, use the
ANNEAL_KEEP_TEST_DIR=1environment variable. - The test runner will preserve the directory and print its path to stderr:
ANNEAL_KEEP_TEST_DIR=1 ./docker.sh cargo test --test integration macro_edge_cases - Note: Because the test runner operates inside Docker, the printed path will reside within the container's isolated
/cachevolume. To explore it, you must open a shell inside the container:./docker.sh bash # Then inside the container, navigate to the path printed to stderr: cd /cache/anneal_target/anneal-test-XXX - Look at
Funs.leanto see the actual Aeneas parameters, and[TestName].leanto see the Anneal theorem signature.
- If you encounter Lean type mismatches (e.g.,
- Caches Need Busting
- Sometimes
cargo testfails with bizarre syntax errors that persist despite fixing the code. - If this happens, clear the integration caches. If you are using
./docker.sh, the caches reside inside the container's/cachevolume, so you must clear them from within by running:./docker.sh rm -rf /cache/anneal_target/anneal_integration_cache
- Sometimes
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

