Skip to content

deps: pin blake3 to std feature instead of hpc-extras#152

Merged
AdaWorldAPI merged 1 commit into
masterfrom
claude/blake3-pin-to-std-feature
May 18, 2026
Merged

deps: pin blake3 to std feature instead of hpc-extras#152
AdaWorldAPI merged 1 commit into
masterfrom
claude/blake3-pin-to-std-feature

Conversation

@AdaWorldAPI
Copy link
Copy Markdown
Owner

The cognitive substrate modules under hpc/ — plane, seal, merkle_tree, vsa, spo_bundle, crystal_encoder, compression_curves, deepnsm — import blake3 directly and unconditionally. Gating blake3 behind hpc-extras caused recurring "missing blake3" build errors for consumers (e.g. burn-ndarray) that selected default-features = false, features = ["std"] to shed the p64/fractal dependency tree. Pinning blake3 to the std feature removes the footgun: any std-enabled build automatically gets blake3 with zero additional feature wiring.

The nostd build (thumbv6m-none-eabi --no-default-features) is unaffected — no std, no blake3, no constant_time_eq non-no_std transitive issue. Both build paths verified locally with cargo check.

Prominent documentation added in three places (Cargo.toml comment block, src/lib.rs pub mod hpc doc, README.md Requirements section) to prevent this from being silently un-done.

The cognitive substrate modules under hpc/ — plane, seal, merkle_tree,
vsa, spo_bundle, crystal_encoder, compression_curves, deepnsm — import
blake3 directly and unconditionally. Gating blake3 behind `hpc-extras`
caused recurring "missing blake3" build errors for consumers (e.g.
burn-ndarray) that selected `default-features = false, features = ["std"]`
to shed the p64/fractal dependency tree. Pinning blake3 to the `std`
feature removes the footgun: any std-enabled build automatically gets
blake3 with zero additional feature wiring.

The nostd build (`thumbv6m-none-eabi --no-default-features`) is
unaffected — no `std`, no blake3, no `constant_time_eq` non-no_std
transitive issue. Both build paths verified locally with `cargo check`.

Prominent documentation added in three places (Cargo.toml comment block,
src/lib.rs `pub mod hpc` doc, README.md Requirements section) to prevent
this from being silently un-done.
@AdaWorldAPI AdaWorldAPI merged commit 3b7c727 into master May 18, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants