-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hi there,
I was trying to use bcs in an environment without std support, after some hacking, I've put together a commit that compiles in a no_std environment: xxuejie@7e6b1f3 Some of my changes include:
- Switch from
stdtocorefor components that exist in both crates, such ascore::result::Result - Use
VecandStringfrom alloc instead of std - Add a just-enough
iomodule inno_stdenvironment to minimize changes to existing logic - (Perhaps the most controversial one), I have to use
onlyerror, which is likethiserrorbut works inno_stdenvironment. And for this to work I have to switch to a nightly version of Rust, sincecore::error::Erroris not stable yet. An alternative path is what postcard does now, but we lose the custom message
So my question here is: is no_std support that you would consider to be accepted to upstream? And if so, how do you suggest we deal with the thiserror issue?
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels