Fix wasm32v1-none build with serde patch
- Add [patch.crates-io] for serde and serde_core pointing to pezkuwichain/serde fix-wasm32v1-none branch - Pin alloy crate versions to prevent conflicts - Update serde to 1.0.228 The serde patch adds target_os=none checks to handle Cargo feature unification where std feature gets enabled even on no_std targets like wasm32v1-none.
This commit is contained in:
+15
-8
@@ -677,11 +677,11 @@ pezpallet-oracle-runtime-api = { path = "bizinikiwi/pezframe/honzon/oracle/runti
|
||||
Inflector = { version = "0.11.4" }
|
||||
aes-gcm = { version = "0.10" }
|
||||
ahash = { version = "0.8.2" }
|
||||
alloy-consensus = { version = "1.0.41", default-features = false }
|
||||
alloy-core = { version = "1.2.1", default-features = false }
|
||||
alloy-primitives = { version = "1.2.1", default-features = false }
|
||||
alloy-rlp = { version = "0.3", default-features = false }
|
||||
alloy-trie = { version = "0.9.1", default-features = false }
|
||||
alloy-consensus = { version = "=1.0.41", default-features = false }
|
||||
alloy-core = { version = "=1.2.1", default-features = false }
|
||||
alloy-primitives = { version = "=1.2.1", default-features = false }
|
||||
alloy-rlp = { version = "=0.3.12", default-features = false }
|
||||
alloy-trie = { version = "=0.9.1", default-features = false }
|
||||
always-assert = { version = "0.1" }
|
||||
anyhow = { version = "1.0.81", default-features = false }
|
||||
approx = { version = "0.5.1" }
|
||||
@@ -1482,7 +1482,7 @@ seccompiler = { version = "0.4.0" }
|
||||
secp256k1 = { version = "0.28.0", default-features = false }
|
||||
secrecy = { version = "0.8.0", default-features = false }
|
||||
send_wrapper = { version = "0.6.0" }
|
||||
serde = { version = "1.0.214", default-features = false }
|
||||
serde = { version = "1.0.228", default-features = false }
|
||||
serde-big-array = { version = "0.3.2" }
|
||||
serde_derive = { version = "1.0.117" }
|
||||
serde_json = { version = "1.0.132", default-features = false }
|
||||
@@ -1516,7 +1516,7 @@ pezkuwi-subxt-codegen = { path = "vendor/pezkuwi-subxt/codegen", version = "0.44
|
||||
pezkuwi-subxt-core = { path = "vendor/pezkuwi-subxt/core", version = "0.44.0" }
|
||||
pezkuwi-subxt-lightclient = { path = "vendor/pezkuwi-subxt/lightclient", version = "0.44.0" }
|
||||
pezkuwi-subxt-macro = { path = "vendor/pezkuwi-subxt/macro", version = "0.44.0" }
|
||||
pezkuwi-subxt-metadata = { path = "vendor/pezkuwi-subxt/metadata", version = "0.44.0", default-features = false }
|
||||
pezkuwi-subxt-metadata = { path = "vendor/pezkuwi-subxt/metadata", version = "0.44.0" }
|
||||
pezkuwi-subxt-rpcs = { path = "vendor/pezkuwi-subxt/rpcs", version = "0.44.0" }
|
||||
pezkuwi-subxt-signer = { path = "vendor/pezkuwi-subxt/signer", version = "0.44.0" }
|
||||
pezkuwi-subxt-utils-fetchmetadata = { path = "vendor/pezkuwi-subxt/utils/fetch-metadata", version = "0.44.0" }
|
||||
@@ -1540,7 +1540,7 @@ test-teyrchain-adder = { version = "1.0.0", path = "pezkuwi/teyrchain/test-teyrc
|
||||
test-teyrchain-halt = { version = "1.0.0", path = "pezkuwi/teyrchain/test-teyrchains/halt" }
|
||||
test-teyrchain-undying = { version = "1.0.0", path = "pezkuwi/teyrchain/test-teyrchains/undying" }
|
||||
testnet-teyrchains-constants = { path = "pezcumulus/teyrchains/runtimes/constants", version = "1.0.0", default-features = false }
|
||||
thiserror = { version = "1.0.69" }
|
||||
thiserror = { version = "1.0.64" }
|
||||
thousands = { version = "0.2.0" }
|
||||
threadpool = { version = "1.7" }
|
||||
tikv-jemalloc-ctl = { version = "0.6.0", features = ["stats"] }
|
||||
@@ -1684,3 +1684,10 @@ wasmi = { opt-level = 3 }
|
||||
x25519-dalek = { opt-level = 3 }
|
||||
yamux = { opt-level = 3 }
|
||||
zeroize = { opt-level = 3 }
|
||||
|
||||
# Patch serde to fix wasm32v1-none compilation issues
|
||||
# serde_core doesn't properly export prelude traits for this target
|
||||
# See: https://github.com/pezkuwichain/serde/tree/fix-wasm32v1-none
|
||||
[patch.crates-io]
|
||||
serde = { git = "https://github.com/pezkuwichain/serde.git", branch = "fix-wasm32v1-none" }
|
||||
serde_core = { git = "https://github.com/pezkuwichain/serde.git", branch = "fix-wasm32v1-none" }
|
||||
|
||||
Reference in New Issue
Block a user