Closed Serial-ATA closed 1 month ago
gadget-{core, io, common} can now build in #![no_std] and wasm32-unknown-unknown environments.
gadget-{core, io, common}
#![no_std]
wasm32-unknown-unknown
Error
core
url
thiserror
no_std
gadget-common
--no-default-features
std
substrate
wasm
common
gadget_core::{job, gadget}
color_eyre
eyre
String
Outside of that, this is mostly just changing some dependency features and feature-gating.
Note that the commits won't work individually. I split them up per-crate to make it easier to review.
The Clippy error is unrelated.
gadget-{core, io, common}
can now build in#![no_std]
andwasm32-unknown-unknown
environments.Notable changes
Error
incore
, I set the channel to nightly. This isn't long term, though. The feature should be out in a couple weeks.url
andthiserror
crates useno_std
compatible forks for now. Unfortunately, it'll probably be awhile before those get merged.gadget-common
now builds with any combination of--no-default-features
, and thestd
,substrate
, andwasm
features.common
will need to be reorganized eventually or this compatibility will be a pain to maintain in the future.gadget_core::{job, gadget}
have been split into multiple modules to make it easier to gate their managers behindstd
.color_eyre
.thiserror
instead, aseyre
isn't meant for library errors.String
errors in its place. I left TODOs to make concrete error variants later.Outside of that, this is mostly just changing some dependency features and feature-gating.
Note that the commits won't work individually. I split them up per-crate to make it easier to review.