oscoin / oscoin-parity-wasm-prototype

Prototype implemenation of Oscoin ledger on Parity Ethereum Wasm
0 stars 0 forks source link

Compile ledger to Wasm with no_std #35

Closed geigerzaehler closed 5 years ago

geigerzaehler commented 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.

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.

geigerzaehler commented 5 years ago

After investigating serde for #25 I think we cannot compile the ledger with #![no_std]. I’ll follow up on this.

geigerzaehler commented 5 years ago

I’m closing this in favor of solving #25 properly.