Skip to content

basic no_std support, as long as you avoid Text and Data and List#7

Open
alsuren wants to merge 2 commits into
aikalant:mainfrom
alsuren:no_std
Open

basic no_std support, as long as you avoid Text and Data and List#7
alsuren wants to merge 2 commits into
aikalant:mainfrom
alsuren:no_std

Conversation

@alsuren
Copy link
Copy Markdown

@alsuren alsuren commented Mar 20, 2025

After this patch, the capnp_conv macro works fine in a no_std environment.

I tested by adding #![no_std] to example/src/main.rs and then switching out all Text/Data/List fields in example/example.capnp with Void, and updating main.rs to use () and the println!() with assert!().

If you would like me to add a no_std example folder, I can do. I haven't thought about how to handle Text/Data/List fields in on_std, because my current project doesn't need them. If you want to wait until we have a solution for those types before advertising no_std support, I guess we can just merge this patch as-is.

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.

1 participant