smoldot
smoldot copied to clipboard
Make the library compile for no_std
Everything in the title.
For obvious reasons, only wasmi would be supported.
Summary after #116:
parity-multiaddrdoesn't supportno_std.num-rationalneeds a bugfix forno_stdto work.slabneeds a bugfix forno_stdto work and is completely unmaintained. We probably need to publish a fork.nomsupportsno_stdin master but not in the crates.io version.prostsupportsno_stdin master but not in the crates.io version. However, some brief testing of the git version showed that it still tried to usestdanyway.
I forgot snow, which doesn't support no_std either.
After #579, smoldot itself compiles for no_std, but not all of its dependencies.
In order to consider this finished, a CI check should be added that compiles smoldot for a platform that doesn't have a std.
Still blocked on snow.
At the moment, the compilation fails on subtle, but it's because its std feature is pulled by snow.