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

Add no_std compatibility #9

Merged
merged 3 commits into from
Dec 27, 2020
Merged

Add no_std compatibility #9

merged 3 commits into from
Dec 27, 2020

Conversation

coolreader18
Copy link
Contributor

I also noticed that it doesn't compile on 32-bit targets; I think some of the stuff like read_usize_ptr assume too much about the target platform. I think probably some of the uses of usize should be changed to u64, which is always 8 bytes, although I'm not sure what the lz4 spec says. I tested using:

$ cargo c --target thumbv7em-none-eabi --no-default-features

@coolreader18
Copy link
Contributor Author

Oh, also, now you can really claim to be dependency-free :)

@PSeitz
Copy link
Owner

PSeitz commented Dec 27, 2020

Thanks, looks good!

I'll have a look at the 32bit issues, maybe I can add 32bit tests to the CI. The spec doesn't cover the implementation, it just defines the format.

@PSeitz PSeitz merged commit 87d77ba into PSeitz:master Dec 27, 2020
@PSeitz
Copy link
Owner

PSeitz commented Dec 27, 2020

published with 0.7.0 including 32-bit support

@coolreader18 coolreader18 deleted the no_std branch December 27, 2020 16:01
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.

None yet

2 participants