Closed geigerzaehler closed 5 years ago
Before this change the ledger code was compiled without no_std to the Wasm target. This did not cause problems yet since we did not use any std code. However, in the future we would have run into issues if we inadvertently used std code.
no_std
std
The reason why no_std was not enabled was that the --no-default-features flag was not respected in tool/build-ledger-wasm because of https://github.com/rust-lang/cargo/issues/5015.
--no-default-features
tool/build-ledger-wasm
After investigating serde for #25 I think we cannot compile the ledger with #![no_std]. I’ll follow up on this.
serde
#![no_std]
I’m closing this in favor of solving #25 properly.
Before this change the ledger code was compiled without
no_std
to the Wasm target. This did not cause problems yet since we did not use anystd
code. However, in the future we would have run into issues if we inadvertently usedstd
code.The reason why
no_std
was not enabled was that the--no-default-features
flag was not respected intool/build-ledger-wasm
because of https://github.com/rust-lang/cargo/issues/5015.