-
Notifications
You must be signed in to change notification settings - Fork 1.6k
xcm
crate fails to compile in wasm32-unknown-unknown
#6276
Comments
You need to build with |
Xcm also compiles in Polkadot without any problems for wasm32-unknown-unknown. |
this use used. had |
!no_std - seems issue. so after 0.9.25 seems something was added and need to sure coswasm also no_std |
need to make cosmwasm to be no_std to compile with xcm in one crate |
for thoose who will be here. xcm. it either works in no_std (sp-io provides missing functions) or std env (rust std used). cosmwasm contract crates are only std. these no_std because the run in wasm, but that is just hacky support of no_std. so not sure how to compile xcm crate without forking cosmwasm crates and add no_std (and will sp-io functions work in cosmwasm?). so may be can make somehow xcm to work in std. |
imho the fix would be xcm not to depend on |
This is a weird take.
This is reasonable. You could create a pr or at least an issue, but before you should check the xcmv3 branch. |
v3 is better. not sp-runtime. but sp-core https://github.com/paritytech/polkadot/blob/gav-xcm-v3/xcm/Cargo.toml . so weird that until 0.9.25 inclusive it was working ok. |
It was probably not imported before? |
You know, just because some implementation is not working for every target, it doesn't mean that it isn't multichain? You are mixing there the specification with the implementation. There can exist multiple implementations of the same specification and some of these implementations may being very opinionated. |
Steps
cargo wasm
0.9.25
version ofxcm
cratexcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "master" }
cargo wasm
Expected:
compiles well
Actual:
Fails with
Notes
The text was updated successfully, but these errors were encountered: