Repository navigation
feat: make the formats and the std tiers separately selectable - #8
Merged
Merged
Conversation
LNSD
force-pushed
the
lnsd/per-format-features
branch
from
August 13, 2026 12:54
76f5d97 to
706f504
Compare
LNSD
force-pushed
the
lnsd/per-format-features
branch
2 times, most recently
from
August 13, 2026 13:02
5b8948f to
63fcbbe
Compare
Reading one format meant compiling all eight and linking `std`, though the formats share no code and only two functions in the crate touch a filesystem; the surface a consumer pays for is now the surface it names. - Add one feature per format and an `all-formats` that turns on every one, gating each format's `raw`, `read` and `write` modules. The default is `all-formats` and `std`, so a consumer that names nothing keeps the whole crate. - Split the runtime into `alloc` and `std`: a builder needs a heap and nothing more, so `write` moves behind `alloc` and only the `from_directory` builders and the errors naming a path stay behind `std`. - Drop `filesystem-support`, which `std` now says; `elf-parsing` stays, since it is the only thing pulling `object` and its fifteen crates, and `lz4-compression` drops to `alloc`. - Tell every dependency which side of the `core`/`std` line a build is on, rather than leaving them all on the `no_std` side because that is what the bare-metal build needs. - Publish the `read` sub-modules and drop the aliased re-exports, so a name is `read::nro::FromBytesError` rather than `read::NroFromBytesError`, and `read` matches `raw` and `write`. Signed-off-by: Lorenzo Delgado <lnsdev@proton.me>
LNSD
force-pushed
the
lnsd/per-format-features
branch
from
August 13, 2026 13:13
63fcbbe to
e38860c
Compare
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.
Reading one format meant compiling all eight and linking
std, though the formats share no code and only two functions in the crate touch a filesystem; the surface a consumer pays for is now the surface it names.all-formatsthat turns on every one, gating each format'sraw,readandwritemodules. The default isall-formatsandstd, so a consumer that names nothing keeps the whole crate.allocandstd: a builder needs a heap and nothing more, sowritemoves behindallocand only thefrom_directorybuilders and the errors naming a path stay behindstd.filesystem-support, whichstdnow says;elf-parsingstays, since it is the only thing pullingobjectand its fifteen crates, andlz4-compressiondrops toalloc.core/stdline a build is on, rather than leaving them all on theno_stdside because that is what the bare-metal build needs.readsub-modules and drop the aliased re-exports, so a name isread::nro::FromBytesErrorrather thanread::NroFromBytesError, andreadmatchesrawandwrite.Breaking for
nx-std/tools: one import,read::SetLanguage->read::nacp::SetLanguage.