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 support for no-std #184

Merged
merged 1 commit into from
May 24, 2020
Merged

add support for no-std #184

merged 1 commit into from
May 24, 2020

Conversation

dwrensha
Copy link
Member

@dwrensha dwrensha commented May 23, 2020

Adds a "std" feature, enabled by default. Supports IO via a new module capnp::io, which defines custom Read and Write traits.

This is a breaking change from version 0.12, so we will need to bump the version before landing and publishing.

This was referenced May 23, 2020
@ProfFan
Copy link

ProfFan commented May 23, 2020

Wow this is AWESOME! I think it's better to have a CI entry testing for no_std though as it is very easy to break no_std with "innocent" commits...

@dwrensha dwrensha force-pushed the no-std branch 4 times, most recently from 45b043b to 82cc6cd Compare May 24, 2020 00:30
@dwrensha
Copy link
Member Author

Good point, @ProfFan. I've added some lines to the Travis config to exercise the no-std option, and now it's failing on stable and 1.40, as expected, because of the async blocks.

@dwrensha dwrensha force-pushed the no-std branch 6 times, most recently from 9e9ecfe to 48c7f1a Compare May 24, 2020 16:27
@dwrensha dwrensha merged commit 022ca7c into master May 24, 2020
@dwrensha dwrensha deleted the no-std branch May 24, 2020 17:26
@vitiral
Copy link

vitiral commented May 26, 2020

Just FYI: rust-lang/rust#48331, hopefully eventually this can be supported with only the alloc crate.

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.

3 participants