-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Effects and Interpretation of substrates std
-feature flag
#9597
Comments
In substrate the wasm-runtime is built without std. Note that this is a choice, to keep the wasm-runtime as small as possible, but in general in rust it is possible to build a wasm binary with std enabled as far as I know. Also note that there was some thought given in the direction of removing the native runtime: #8893
In general yes, but in substrate (and FRAME especially) I don't think it is possible to compile the wasm-runtime with std enabled. |
Sorry, to re-assure here: Are you talking about std of rust, or the std-feature flag of substrate? |
std
-feature flagstd
-feature flag
i don't see the difference between them. When we compile a crate without |
Mmh, okay, I see that. Then I have a question regarding some stuff that will not be available in wasm-env.
Is there another way to verify storage proofs on-chain? |
@mustermeiszer you can use this function here: https://github.com/paritytech/substrate/blob/master/primitives/trie/src/lib.rs#L304 This is available in |
Thanks @bkchr. |
For me this is reasonably explained and solved. Will close this here. |
Hi,
(when talking about
std
in the following I am referring to the substrate specificstd
-feature flag and not the standard runtime of rust)I have a few questions regarding the
std
-feature flag and the consequences of it being activated or deactivated.Not sure, if this is the right place for this. Thanks in advance for your help.
std
it in a wasm build without letting the build fail?std
flag wrongly? (i.e. are there some assumptions made when this feature flag is active or not active)Thanks again for your time!
The text was updated successfully, but these errors were encountered: