v0.7.8
This revision adds no_std support for SputnikVM. To use it, insert the dependency as:
sputnikvm = { version = "0.7.8", default-features = false }
In this mode, it uses alloc
library for heap allocation, which is a nightly feature so it requires nightly Rust to build. The no_std
version of SputnikVM has all the functionalities of the std version except the four pre-compiled contracts. You will need to implement it yourself if pre-compiled contracts is something you need. The main patch name in no_std
is changed to MainnetEmbeddedPatch
.
For a more detailed tutorial on how to use the no_std
version of SputnikVM, have a look at the Classic in Orbit blog post SputnikVM, the Rux Microkernel and Embedded Devices, where it shows how to run SputnikVM on the Rux microkernel.