docs: steer low-memory installs to prebuilt binaries#368
Open
dubadub wants to merge 1 commit into
Open
Conversation
cargo install compiles ~400 crates and needs several GB of RAM and disk. On Armbian /tmp is zram-backed (RAM/2), and cargo install puts its target dir there, so SBC users hit confusing OOM-shaped build failures. We already publish aarch64 and armv7 binaries; point people at them, and document CARGO_TARGET_DIR for those who do want to build. Refs #366
ReviewReviewed the README diff (docs-only change, no Rust code touched, so Overall: solid, well-scoped documentation fix. Verified the technical claims:
Minor nits (non-blocking):
No security, performance, or test-coverage concerns — this is a README-only change with no executable code paths affected. |
This was referenced Jul 13, 2026
Open
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.
Addresses the install side of #366.
We already publish
aarch64-unknown-linux-muslandarm-unknown-linux-musleabihfbinaries inrelease.yaml— but the README presentscargo install cookclias a peer option with no caveats, so SBC users reach for it and then spend an hour compiling ~400 crates only to run out of RAM.Changes to the Installation section:
cargo install cookcli→cargo install cookcli --locked, with a note on why./tmpis zram-backed (sized RAM/2) andcargo installputs its target dir there, which is what produces the confusingfailed to load bitcode of module ...failure. Gives theCARGO_TARGET_DIRandCARGO_PROFILE_RELEASE_LTO=falseescape hatches.Pairs with #367, which fixes the underlying memory cliff by moving off fat LTO.
Refs #366