Skip to content

Conversation

@LGFae
Copy link

@LGFae LGFae commented Oct 6, 2025

The strategy is as follows:

  • anything that included memmap now also depends on std
  • change all imports from std::* to either core::* or ::alloc::* as appropriate.
  • new_from_locale accepts a CStr in no_std environments
  • other load functions that depend on std::fs will not be included in no_std environments

A no_std feature could make the crate useful in embed environments, or otherwise places where one may want to keep memory usage to a minimum. In any case, I believe it would make the crate more flexible without being overly invasive, though I can understand if the developers have no interest in maintaining this.

The strategy is as follows:
  * anything that included `memmap` now also depends on `std`
  * change all imports from `std::*` to either `core::*` or `::alloc::*`
    as appropriate.
  * `new_from_locale` accepts a CStr in `no_std` environments
  * other load functions that depend on `std::fs` will not be included
    in `no_std` environments
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.

1 participant