smoldot icon indicating copy to clipboard operation
smoldot copied to clipboard

Make the library compile for no_std

Open tomaka opened this issue 5 years ago • 4 comments

Everything in the title.

For obvious reasons, only wasmi would be supported.

tomaka avatar Oct 28 '20 16:10 tomaka

Summary after #116:

  • parity-multiaddr doesn't support no_std.
  • num-rational needs a bugfix for no_std to work.
  • slab needs a bugfix for no_std to work and is completely unmaintained. We probably need to publish a fork.
  • nom supports no_std in master but not in the crates.io version.
  • prost supports no_std in master but not in the crates.io version. However, some brief testing of the git version showed that it still tried to use std anyway.

tomaka avatar Oct 29 '20 11:10 tomaka

I forgot snow, which doesn't support no_std either.

tomaka avatar Oct 30 '20 13:10 tomaka

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.

tomaka avatar Feb 28 '21 09:02 tomaka

Still blocked on snow. At the moment, the compilation fails on subtle, but it's because its std feature is pulled by snow.

tomaka avatar Nov 08 '22 11:11 tomaka