Open tony-iqlusion opened 2 months ago
Unfortunately the code generated for protoc-gen-prost-serde
comes via the pbjson
crate. They would need to provide a release that generates no_std
compliant code. We could do some post-processing of their generated code, but that would be a potentially brittle transformation, so it would be better if the upstream could do this.
Thanks! I opened an issue on pbjson
: https://github.com/influxdata/pbjson/issues/135
Would it be possible to add an option for the generated code to avoid referencing
std
and things that are only in the prelude whenstd
is linked, e.g.std::result::Result
andToString
, and instead usecore::result::Result
andalloc::string::ToString
?