Skip to content

Commit 74aea8a

Browse files
committed
Fix wasm32 compile with download_metadata feature.
1 parent 9784bcf commit 74aea8a

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ members = [
3232
## Keep common dependencies here.
3333
[workspace.dependencies]
3434
# Our crates
35-
polymesh-api-client = { version = "3.10.1", path = "crates/polymesh-api-client", default-features = false }
35+
polymesh-api-client = { version = "3.10.2", path = "crates/polymesh-api-client", default-features = false }
3636
polymesh-api-ink = { version = "1.6.0", path = "crates/polymesh-api-ink", default-features = false }
37-
polymesh-api-codegen = { version = "3.7.0", path = "crates/polymesh-api-codegen", default-features = false }
38-
polymesh-api-codegen-macro = { version = "3.7.0", path = "crates/polymesh-api-codegen-macro", default-features = false }
37+
polymesh-api-codegen = { version = "3.7.1", path = "crates/polymesh-api-codegen", default-features = false }
38+
polymesh-api-codegen-macro = { version = "3.7.1", path = "crates/polymesh-api-codegen-macro", default-features = false }
3939
polymesh-api = { version = "3.12.0", path = "./", default-features = false }
4040
polymesh-api-client-extras = { version = "3.6.0", path = "crates/polymesh-api-client-extras", default-features = false }
4141
polymesh-api-tester = { version = "0.10.0", path = "crates/polymesh-api-tester", default-features = false }

crates/polymesh-api-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polymesh-api-client"
3-
version = "3.10.1"
3+
version = "3.10.2"
44
edition = "2021"
55
authors = ["Robert G. Jakabosky <robert@polymesh.network>"]
66
license = "Apache-2.0"

crates/polymesh-api-client/src/metadata.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use frame_metadata::decode_different::{DecodeDifferent, DecodeDifferentArray};
99
#[cfg(feature = "v14")]
1010
use scale_info::form::PortableForm;
1111

12+
#[cfg(any(feature = "v13", feature = "v12",))]
1213
use codec::{Decode, Encode};
1314

1415
#[cfg(not(feature = "std"))]

crates/polymesh-api-client/src/serde_impl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use serde::{de, ser, Deserialize, Serialize};
22

3+
use alloc::format;
34
use core::{fmt, str::FromStr};
45
use sp_core::crypto::Ss58Codec;
56

crates/polymesh-api-codegen-macro/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polymesh-api-codegen-macro"
3-
version = "3.7.0"
3+
version = "3.7.1"
44
edition = "2021"
55
authors = ["Robert G. Jakabosky <robert@polymesh.network>"]
66
license = "Apache-2.0"
@@ -20,7 +20,7 @@ proc-macro-error = "1"
2020
syn = "1.0.96"
2121

2222
polymesh-api-codegen = { workspace = true, default-features = false }
23-
polymesh-api-client = { workspace = true , default-features = false, optional = true }
23+
polymesh-api-client = { workspace = true, optional = true }
2424

2525
codec = { version = "3", package = "parity-scale-codec", default-features = false }
2626

@@ -30,6 +30,7 @@ default = [ "std", "v14" ]
3030
# Support downloading chain metadata from a RPC node.
3131
download_metadata = [
3232
"polymesh-api-client",
33+
"polymesh-api-client/std",
3334
"polymesh-api-client/type_info",
3435
]
3536

crates/polymesh-api-codegen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polymesh-api-codegen"
3-
version = "3.7.0"
3+
version = "3.7.1"
44
edition = "2021"
55
authors = ["Robert G. Jakabosky <robert@polymesh.network>"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)