Skip to content

Conversation

@robjtede
Copy link
Member

@robjtede robjtede commented Feb 11, 2026

closes #140

@TechnoPorg
Copy link

Hi Rob. Thanks for getting started on this so quickly!

Unfortunately, the patch as-is doesn't quite fix the problem, as the alloc crate still gets pulled in unconditionally via lib.rs, meaning compilation for a small example with the thumbv7em-none-eabi target fails on the no-alloc branch:

#![no_std]

fn main() {
    let test = bytesize::KIB;
}

error: no global memory allocator found but one is required; link to std or add #[global_allocator] to a static item that implements the GlobalAlloc trait
error: #[panic_handler] function required, but not found

Also, from a code review perspective, it might make more sense to put the #[cfg] on the parse module itself, rather than on the individual items within it.

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.

Support for no-alloc environments

2 participants