Publish v0.0.9: Apache-2.0 license + integrator notes#14
Merged
Conversation
- License: dual MIT/Apache-2.0 -> single Apache-2.0 (explicit patent grant, preferred for infrastructure crates). - Version: 0.1.0 -> 0.0.9 to reserve 0.1.0 for the Plonky3 upstream proposal after cross-platform validation lands. - Add LICENSE file (canonical Apache-2.0 text from apache.org). Crates.io will fail validation without a license file when license-file is declared; the previous Cargo.toml referenced a license string but no file existed in the tree. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- License line: MIT -> Apache-2.0 (matches Cargo.toml + LICENSE file) - Phase-scoping contract: call out that violation is undefined behavior - ZK_ALLOC_SLAB_GB: note total-virtual-reservation = slab × threads - Add Platform support table: - Linux x86_64 / aarch64 direct syscalls - aarch64 requires vm.overcommit_memory=1 (Asahi SIGABRT note) - Other Unix uses libc fallback (no NOHUGEPAGE) - Windows is no-op stubs (use System directly) - Add minimum RAM guidance for memory-constrained boxes Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
0.1.0→0.0.9. Reserves0.1.0for the eventual Plonky3 upstream proposal after multi-platform validation (M2 Pro / M4 Pro / M4-M / Asahi / Hetzner).MIT OR Apache-2.0→Apache-2.0. Single license, explicit patent grant — preferred for infrastructure crates that downstream provers will depend on.LICENSEfile (canonical Apache 2.0 text, 202 lines from apache.org). Was declared in Cargo.toml but missing from disk; crates.io publish would lint without it.Air0-byte file from repo root.Why now
Published to crates.io: https://crates.io/crates/zk-alloc
0.0.9signals pre-stable so we can iterate the API freely before proposing0.1.0to Plonky3 upstream once the cross-platform validation lands.What's in each commit
a409c13— publish prep: license Apache-2.0, version 0.0.9, add LICENSE fileCargo.toml:version = "0.0.9",license = "Apache-2.0"LICENSE(Apache 2.0 canonical text, 202 lines)a8aa423— publish prep: README license fix + integrator notesMIT→Apache-2.0 — see [LICENSE](LICENSE)ZK_ALLOC_SLAB_GBrowslab_gb × thread_countvirtual (e.g., 8 × 16 = 128 GiB virtual). Physical RAM only consumed on touch.vm.overcommit_memory=1requirement / Other Unix libc fallback (no NOHUGEPAGE) / Windows no-op stubsZK_ALLOC_SLAB_GBor limit threadsCrate state after publish
rayon-flushrayon ^1.10(optional, default-on viarayon-flush),libc 0.2(non-Linux only)Test plan
cargo publish --dry-runon Hetzner (Zen 4 Linux) — cleancargo publishfrom brain — succeeded, crate live on crates.iov0.0.9on main after merge + pushfeat/zk-allocbuilds + runs, (b) switch from vendoredzk-alloc/workspace member →zk-alloc = "0.0.9"crates.io dep withp3_zk_alloc::*→zk_alloc::*import rewrites, (c) paired bench zk-alloc vs system allocator on prove flow, N=5Not in this PR (follow-ups)
MADV_HUGEPAGE+ adaptive pre-touch) — onsync-from-leanmultisig-m2-2026-05-11branch, ships as 0.0.10 or 0.1.0fix/safe-arena-routingbranch, ships as next minor