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 support to prost, prost-types & make codegen no_std compatible #319

Merged
merged 1 commit into from May 10, 2020

Conversation

danburkert
Copy link
Collaborator

This PR adds a new std feature to the prost and prost-types
crates, which is enabled by default. Additionally, the prost-build and
prost-derive crates have been updated to emit no-std compatible code.

This is a breaking change for edition-2015 crates, which are likely to
now require an extern crate core; directive when including
prost-generated code.

Co-authored-by: Chris Beck beck.ct@gmail.com
Co-authored-by: Dan Burkert dan@danburkert.com
Co-authored-by: David Flemström david.flemstrom@gmail.com

…` compatible

This PR adds a new `std` feature to the `prost` and `prost-types`
crates, which is enabled by default. Additionally, the `prost-build` and
`prost-derive` crates have been updated to emit no-std compatible code.

This is a breaking change for edition-2015 crates, which are likely to
now require an `extern crate core;` directive when including
`prost`-generated code.

Co-authored-by: Chris Beck <beck.ct@gmail.com>
Co-authored-by: Dan Burkert <dan@danburkert.com>
Co-authored-by: David Flemström <david.flemstrom@gmail.com>
@danburkert
Copy link
Collaborator Author

This is a squash + rebase of #215, with some cleanups and additional testing.

@cbeck88
Copy link
Contributor

cbeck88 commented May 10, 2020

Thank you @danburkert !

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