-
Notifications
You must be signed in to change notification settings - Fork 21
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
Make allsorts run on no_std #42
Conversation
- most uses of HashMap were replaced by BTreeMap because HashMap does not exist on no_std (TODO: perf regression?) - use miniz_oxide instead of libz-sys for zlib implementation - use custom allocator for brotli decoding - make "std" an optional feature, enabled by default - put blanket std::error::Error impls behind std feature flag
Okay, now everything should at least compile on no_std - I am still not 100% sure about the brotli decoder and the zlib decoder - they compile, but they probably don't work yet (i.e. they'll just emit a Since rental is not maintained anymore, I've published a fork with a custom feature that allows rental to run on |
EDIT - I mistakenly thought that @fschutt was part of the
Background: It looks like this PR (or something based off of it) was published to crates.io as Unfortunately, once the backwards-compatibility hack rust-lang/rust#83125 is removed from rustc, these crates will stop compiling. The simplest way to keep everything compiling would be to make a new point release of Feel free to ask me if you have any questions about this. Thank you for your time. |
Hi @Aaron1011 we (YesLogic) don't own the |
Yeah, this PR is pretty old now, I think this can be closed for now. My original effort to make allsorts run on The reason I like Yes, I did publish it as The |
Any chance you could publish a new point release that changes the repo links etc. in the Cargo.toml and README to not point at our repo? A note about maintenance status and that it's fork would be super helpful for avoiding confusion too. |
@fschutt Would you be able to publish that point release? It would be a big help in removing the back-compat hack from rustc. |
What back-compat hack? And yeah, sorry about not publishing a release, I forgot, sorry. |
I think it was this one from Aaron1011's comment:
|
@fschutt Sorry to keep bothering you - would you be able to publish that release? It would be a huge help in removing the backward-compatibility hack from rustc. |
This is necessary to have a font shaper for embedded environments.
NOTE: WIP PR, some dependencies do not yet have no_std support, also compiling fails currently
TODO LIST:
std::io::Cursor
traits, use eitherVec<u8>
or&[u8]
where possibleno_std
support!)