chore: fixed std wasm build of xcm (#2535)

# Description

just ensures

```sh
cargo check --package staging-xcm  --no-default-features  --target wasm32-unknown-unknown --features=std
```

work (for CosmWasm)

# Checklist

- [x] My PR includes a detailed description as outlined in the
"Description" section above
- [ ] My PR follows the [labeling requirements](CONTRIBUTING.md#Process)
of this project (at minimum one label for `T`
  required)
- [x] I have made corresponding changes to the documentation (if
applicable)
- [ ] I have added tests that prove my fix is effective or that my
feature works (if applicable)

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
dzmitry-lahoda
2023-12-05 22:22:28 +00:00
committed by GitHub
parent 5dd6a4ba47
commit 0239cedd0f
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -13,23 +13,23 @@ documentation = "https://docs.rs/sp-wasm-interface"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
bounded-collections = { version = "0.1.4", default-features = false }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.193", default-features = false, optional = true, features = ["alloc", "derive"] }
smallvec = "1.11.0"
sp-arithmetic = { path = "../arithmetic", default-features = false }
sp-core = { path = "../core", default-features = false }
sp-debug-derive = { path = "../debug-derive", default-features = false }
sp-std = { path = "../std", default-features = false }
[features]
default = ["std"]
std = [
"bounded-collections/std",
"codec/std",
"scale-info/std",
"serde/std",
"sp-arithmetic/std",
"sp-core/std",
"sp-debug-derive/std",
"sp-std/std",
]
@@ -39,8 +39,8 @@ full-metadata-docs = ["scale-info/docs"]
# Serde support without relying on std features.
serde = [
"bounded-collections/serde",
"dep:serde",
"scale-info/serde",
"sp-arithmetic/serde",
"sp-core/serde",
]