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

(wip) no_std support #52

Closed
wants to merge 5 commits into from
Closed

(wip) no_std support #52

wants to merge 5 commits into from

Conversation

ameets
Copy link

@ameets ameets commented Nov 14, 2017

Revive no_std WIP

tmaher and others added 5 commits November 13, 2017 16:40
Using an unmerged PR for bytes, and liballoc as the source for Box, String, Vec,
and BTreeMap, the runtime bits of Prost can work with no_std
@ameets ameets mentioned this pull request Nov 14, 2017
Copy link
Collaborator

@danburkert danburkert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, sorry I just realized I had this comment and never actually submitted the review. What's the status of this, is it ready for a review pass?

@@ -1,12 +1,15 @@
use std::fmt::Debug;
use std::usize;
use core::fmt::Debug;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't these APIs unstable? Should probably be behind the feature gate.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No concern with gating core, though I was under the impression that core is considered stable and alloc is unstable/experimental. I can try to get confirmation from the core team on that front.

I should be able to look at the codegen piece this week/have a review pass ready later this week.

Thanks!

Copy link
Author

@ameets ameets Dec 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @danburkert -- when looking into this further, I realized that the current proposal for no_std with the bytes crate drops/removes into_bytes() (b/c of io::Cursor). Since into_bytes() is rather critical in prost for encoding and decoding, I think it makes sense to sort out the bytes crate before going further with no_std in prost. WDYT?

@danburkert
Copy link
Collaborator

no_std support landed in #319, which I believe was a continuation of this work. Closing accordingly.

@danburkert danburkert closed this Nov 15, 2020
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

4 participants