Closed AtlasHands closed 1 year ago
Thanks! I like it a lot. That's an interesting idea.
It seems that using cargo wasi build --release
together with strip=true
further reduces the size of the wasm binary. This is probably due to the fact that cargo wasi
uses wasm-opt
by default.
Closed by #59
If the rust spin image is compiled with symbol stripping the size can be decreased from 1.9MB to 132KB, using the command:
this can also be done in the Cargo.toml file so that compiling in release mode strips symbols by default:
I tested to make sure it would work with the spin framework using
spin up
and it was functional.