Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support no_std #7

Open
theoparis opened this issue Aug 7, 2024 · 1 comment
Open

Support no_std #7

theoparis opened this issue Aug 7, 2024 · 1 comment

Comments

@theoparis
Copy link

There seems to be a std feature that can be disabled with an enabled alloc feature (see https://github.com/wcampbell0x2a/cpio-deku/blob/master/Cargo.toml#L8), but src/lib.rs requires std. I'm not sure what the no-std replacement for read/write would be though - see rust-lang/rust#48331. Most of the alternative read/write trait implementations are all unmaintained (e.g. core2). Also see dtolnay/thiserror#64, thiserror doesn't work with no-std.

@wcampbell0x2a
Copy link
Owner

wcampbell0x2a commented Aug 7, 2024

This is an unpublished crate (with non release versions of deku), thus I haven't tested it much.

Should be able to get no_std + alloc working. Deku itself supports it.

Deku has an ensure_no_std to make sure this doesn't break. And uses no_std_io to provide Read/Write for no_std.

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

No branches or pull requests

2 participants