Rust constraints?

2
closed
FrankC01
FrankC01
Posted 2 months ago

Rust constraints? #319

Other than wasm (requirement) and IO (constraints) are there any other constraints to be aware of before going full tilt boogies on an application?

TIA

adamspofford-dfinity
adamspofford-dfinity

If you already know the effectively-no_std implications of wasm32-unknown-unknown, and that most crates offering wasm support are actually offering js-sys support, then the only thing I can think of is that code size is limited to 2MiB (though you can compress with gzip) - assets will need to be uploaded after installation, which we provide as a library ic-certified-assets. And no_std is slightly more restrictive than what you actually have access to - the system API provides time and randomness, as well as allowing you to receive (and experimentally make) HTTP requests, in addition to regular function calls.

FrankC01
FrankC01
Created 2 months ago

Thank you.... also answers other questions for me :)

Look forward to building things.

You can close this or leave it open for others with same question as there was nothing I was able to find in the documentation.