rust-protobuf icon indicating copy to clipboard operation
rust-protobuf copied to clipboard

no_std

Open stepancheg opened this issue 3 years ago • 7 comments
trafficstars

Is there a demand for no_std feature?

stepancheg avatar Feb 21 '22 06:02 stepancheg

I'd find that useful!

Laura7089 avatar Apr 01 '22 18:04 Laura7089

I would also find this useful. Happy to put some of my time towards it as well, but I could use some direction.

nathaniel-brough avatar May 04 '22 15:05 nathaniel-brough

If effort is put into no_std support, please make sure no_alloc and heapless is a part of that solution :)

edisno avatar Nov 25 '22 09:11 edisno

Are there any Rust protobufs that are heapless/noalloc? Basically, the nanopb equivalent?

I'm investigating just embedding nanopb into my embedded app at this point.

sureshjoshi avatar Jun 21 '23 21:06 sureshjoshi

I believe tokio/prost supports nostd

nathaniel-brough avatar Jun 24 '23 16:06 nathaniel-brough

Yep, they do support no_std. I was testing it out the other day.

They do require alloc though.

My (hopefully temporary) solution is to create nanopb bindings using bindgen and so far, so good 🤷🏽

A first party, Rust-native, heapless would be much nicer though.

sureshjoshi avatar Jun 24 '23 17:06 sureshjoshi