From 25732b5d8cef045a14c29598a07bb8edae030578 Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Fri, 9 Jan 2026 17:35:51 +0300 Subject: [PATCH] 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. --- Cargo.lock | 220 ++++++++++++++++++++++++----------------------------- Cargo.toml | 23 ++++-- 2 files changed, 114 insertions(+), 129 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0d76acce..e0903528 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,9 +109,9 @@ checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" [[package]] name = "alloy-consensus" -version = "1.3.0" +version = "1.0.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41e46a465e50a339a817070ec23f06eb3fc9fbb8af71612868367b875a9d49e3" +checksum = "b9b151e38e42f1586a01369ec52a6934702731d07e8509a7307331b09f6c46dc" dependencies = [ "alloy-eips", "alloy-primitives", @@ -120,7 +120,6 @@ dependencies = [ "alloy-trie", "alloy-tx-macros", "auto_impl", - "borsh", "c-kzg", "derive_more 2.1.1", "either", @@ -136,9 +135,9 @@ dependencies = [ [[package]] name = "alloy-core" -version = "1.5.2" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d4087016b0896051dd3d03e0bedda2f4d4d1689af8addc8450288c63a9e5f68" +checksum = "ad31216895d27d307369daa1393f5850b50bbbd372478a9fa951c095c210627e" dependencies = [ "alloy-dyn-abi", "alloy-json-abi", @@ -149,9 +148,9 @@ dependencies = [ [[package]] name = "alloy-dyn-abi" -version = "1.5.2" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "369f5707b958927176265e8a58627fc6195e5dfa5c55689396e68b241b3a72e6" +checksum = "7b95b3deca680efc7e9cba781f1a1db352fa1ea50e6384a514944dcf4419e652" dependencies = [ "alloy-json-abi", "alloy-primitives", @@ -178,25 +177,23 @@ dependencies = [ [[package]] name = "alloy-eip2930" -version = "0.2.3" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9441120fa82df73e8959ae0e4ab8ade03de2aaae61be313fbf5746277847ce25" +checksum = "7b82752a889170df67bbb36d42ca63c531eb16274f0d7299ae2a680facba17bd" dependencies = [ "alloy-primitives", "alloy-rlp", - "borsh", "serde", ] [[package]] name = "alloy-eip7702" -version = "0.6.3" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2919c5a56a1007492da313e7a3b6d45ef5edc5d33416fdec63c0d7a2702a0d20" +checksum = "9d4769c6ffddca380b0070d71c8b7f30bed375543fe76bb2f74ec0acf4b7cd16" dependencies = [ "alloy-primitives", "alloy-rlp", - "borsh", "k256", "serde", "thiserror 2.0.17", @@ -204,9 +201,9 @@ dependencies = [ [[package]] name = "alloy-eips" -version = "1.3.0" +version = "1.0.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707337efeb051ddbaece17a73eaec5150945a5a5541112f4146508248edc2e40" +checksum = "e5434834adaf64fa20a6fb90877bc1d33214c41b055cc49f82189c98614368cc" dependencies = [ "alloy-eip2124", "alloy-eip2930", @@ -215,7 +212,6 @@ dependencies = [ "alloy-rlp", "alloy-serde", "auto_impl", - "borsh", "c-kzg", "derive_more 2.1.1", "either", @@ -227,9 +223,9 @@ dependencies = [ [[package]] name = "alloy-json-abi" -version = "1.5.2" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84e3cf01219c966f95a460c95f1d4c30e12f6c18150c21a30b768af2a2a29142" +checksum = "15516116086325c157c18261d768a20677f0f699348000ed391d4ad0dcb82530" dependencies = [ "alloy-primitives", "alloy-sol-type-parser", @@ -239,25 +235,24 @@ dependencies = [ [[package]] name = "alloy-primitives" -version = "1.5.2" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6a0fb18dd5fb43ec5f0f6a20be1ce0287c79825827de5744afaa6c957737c33" +checksum = "6177ed26655d4e84e00b65cb494d4e0b8830e7cae7ef5d63087d445a2600fb55" dependencies = [ "alloy-rlp", "bytes", "cfg-if", "const-hex", "derive_more 2.1.1", - "foldhash 0.2.0", - "hashbrown 0.16.1", - "indexmap 2.12.1", + "foldhash 0.1.5", + "hashbrown 0.15.5", + "indexmap 2.13.0", "itoa", "k256", "keccak-asm", "paste", "proptest", "rand 0.9.2", - "rapidhash", "ruint", "rustc-hash 2.1.1", "serde", @@ -289,9 +284,9 @@ dependencies = [ [[package]] name = "alloy-serde" -version = "1.3.0" +version = "1.0.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a438ce4cd49ec4bc213868c1fe94f2fe103d4c3f22f6a42073db974f9c0962da" +checksum = "64600fc6c312b7e0ba76f73a381059af044f4f21f43e07f51f1fa76c868fe302" dependencies = [ "alloy-primitives", "serde", @@ -321,7 +316,7 @@ dependencies = [ "alloy-sol-macro-input", "const-hex", "heck 0.5.0", - "indexmap 2.12.1", + "indexmap 2.13.0", "proc-macro-error2", "proc-macro2 1.0.105", "quote 1.0.43", @@ -358,9 +353,9 @@ dependencies = [ [[package]] name = "alloy-sol-types" -version = "1.5.2" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09aeea64f09a7483bdcd4193634c7e5cf9fd7775ee767585270cd8ce2d69dc95" +checksum = "58377025a47d8b8426b3e4846a251f2c1991033b27f517aade368146f6ab1dfe" dependencies = [ "alloy-json-abi", "alloy-primitives", @@ -370,9 +365,9 @@ dependencies = [ [[package]] name = "alloy-trie" -version = "0.9.3" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "428aa0f0e0658ff091f8f667c406e034b431cb10abd39de4f507520968acc499" +checksum = "e3412d52bb97c6c6cc27ccc28d4e6e8cf605469101193b50b0bd5813b1f990b5" dependencies = [ "alloy-primitives", "alloy-rlp", @@ -2390,15 +2385,16 @@ dependencies = [ [[package]] name = "blake3" -version = "1.8.2" +version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3888aaa89e4b2a40fca9848e400f6a658a5a3978de7be858e209cafa8be9a4a0" +checksum = "2468ef7d57b3fb7e16b576e8377cdbde2320c60e1491e961d11da40fc4f02a2d" dependencies = [ "arrayref", "arrayvec 0.7.6", "cc", "cfg-if", - "constant_time_eq 0.3.1", + "constant_time_eq 0.4.2", + "cpufeatures", ] [[package]] @@ -2453,29 +2449,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "borsh" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1da5ab77c1437701eeff7c88d968729e7766172279eab0676857b3d63af7a6f" -dependencies = [ - "borsh-derive", - "cfg_aliases 0.2.1", -] - -[[package]] -name = "borsh-derive" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0686c856aa6aac0c4498f936d7d6a02df690f614c03e4d906d1018062b5c5e2c" -dependencies = [ - "once_cell", - "proc-macro-crate 3.4.0", - "proc-macro2 1.0.105", - "quote 1.0.43", - "syn 2.0.114", -] - [[package]] name = "bounded-collections" version = "0.1.9" @@ -2871,9 +2844,9 @@ dependencies = [ [[package]] name = "clap_complete" -version = "4.5.64" +version = "4.5.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c0da80818b2d95eca9aa614a30783e42f62bf5fdfee24e68cfb960b071ba8d1" +checksum = "430b4dc2b5e3861848de79627b2bedc9f3342c7da5173a14eaa5d0f8dc18ae5d" dependencies = [ "clap", ] @@ -3257,6 +3230,12 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" +[[package]] +name = "constant_time_eq" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b" + [[package]] name = "convert_case" version = "0.4.0" @@ -3575,7 +3554,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19fef6b39515a0ecfbb9954ab3d2d6740a459a11bef3d0536ef48460e6f6deb5" dependencies = [ "serde", - "serde_derive", + "serde_derive 1.0.228 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -3641,7 +3620,7 @@ checksum = "46e3a650a696c3f4c93bb869e7d219ba3abf6e247164aaf7f12dc918a1d52772" dependencies = [ "cranelift-bitset", "serde", - "serde_derive", + "serde_derive 1.0.228 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -3724,7 +3703,7 @@ dependencies = [ "rayon", "regex", "serde", - "serde_derive", + "serde_derive 1.0.228 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json", "tinytemplate", "tokio", @@ -3969,7 +3948,7 @@ checksum = "af9efde466c5d532d57efd92f861da3bdb7f61e369128ce8b4c3fe0c9de4fa4d" dependencies = [ "cc", "codespan-reporting", - "indexmap 2.12.1", + "indexmap 2.13.0", "proc-macro2 1.0.105", "quote 1.0.43", "scratch", @@ -3984,7 +3963,7 @@ checksum = "3efb93799095bccd4f763ca07997dc39a69e5e61ab52d2c407d4988d21ce144d" dependencies = [ "clap", "codespan-reporting", - "indexmap 2.12.1", + "indexmap 2.13.0", "proc-macro2 1.0.105", "quote 1.0.43", "syn 2.0.114", @@ -4002,7 +3981,7 @@ version = "1.0.192" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "31d72ebfcd351ae404fb00ff378dfc9571827a00722c9e735c9181aec320ba0a" dependencies = [ - "indexmap 2.12.1", + "indexmap 2.13.0", "proc-macro2 1.0.105", "quote 1.0.43", "syn 2.0.114", @@ -4115,7 +4094,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d162beedaa69905488a8da94f5ac3edb4dd4788b732fadb7bd120b2625c1976" dependencies = [ "data-encoding", - "syn 2.0.114", + "syn 1.0.109", ] [[package]] @@ -5024,7 +5003,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb42427514b063d97ce21d5199f36c0c307d981434a6be32582bc79fe5bd2303" dependencies = [ "expander", - "indexmap 2.12.1", + "indexmap 2.13.0", "proc-macro-crate 3.4.0", "proc-macro2 1.0.105", "quote 1.0.43", @@ -5051,7 +5030,7 @@ dependencies = [ "js-sys", "log", "serde", - "serde_derive", + "serde_derive 1.0.228 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json", "wasm-bindgen", "web-sys", @@ -5619,7 +5598,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7" dependencies = [ "fallible-iterator", - "indexmap 2.12.1", + "indexmap 2.13.0", "stable_deref_trait", ] @@ -5825,7 +5804,7 @@ dependencies = [ "futures-core", "futures-sink", "http 1.4.0", - "indexmap 2.12.1", + "indexmap 2.13.0", "slab", "tokio", "tokio-util", @@ -6599,9 +6578,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.12.1" +version = "2.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ad4bb2b565bca0645f4d68c5c9af97fba094e9791da685bf83cb5f3ce74acf2" +checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" dependencies = [ "equivalent", "hashbrown 0.16.1", @@ -7364,9 +7343,9 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" [[package]] name = "libc" -version = "0.2.179" +version = "0.2.180" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5a2d376baa530d1238d133232d15e239abad80d05838b4b59354e5268af431f" +checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc" [[package]] name = "libflate" @@ -8015,7 +7994,7 @@ dependencies = [ "futures", "futures-timer", "hickory-resolver", - "indexmap 2.12.1", + "indexmap 2.13.0", "libc", "mockall", "multiaddr 0.17.1", @@ -8969,7 +8948,7 @@ checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe" dependencies = [ "crc32fast", "hashbrown 0.15.5", - "indexmap 2.12.1", + "indexmap 2.13.0", "memchr", ] @@ -9096,7 +9075,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43dfaf083aef571385fccfdc3a2f8ede8d0a1863160455d4f2b014d8f7d04a3f" dependencies = [ "expander", - "indexmap 2.12.1", + "indexmap 2.13.0", "itertools 0.11.0", "petgraph 0.6.5", "proc-macro-crate 3.4.0", @@ -9587,7 +9566,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset 0.4.2", - "indexmap 2.12.1", + "indexmap 2.13.0", ] [[package]] @@ -9597,7 +9576,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3672b37090dbd86368a4145bc067582552b29c27377cad4e0a306c97f9bd7772" dependencies = [ "fixedbitset 0.5.7", - "indexmap 2.12.1", + "indexmap 2.13.0", ] [[package]] @@ -12580,7 +12559,7 @@ dependencies = [ "fatality", "futures", "futures-timer", - "indexmap 2.12.1", + "indexmap 2.13.0", "parity-scale-codec", "pez-tracing-gum", "pezkuwi-node-network-protocol", @@ -15124,7 +15103,7 @@ dependencies = [ "pezstaging-xcm-executor", "scale-info", "serde", - "serde_derive", + "serde_derive 1.0.228 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json", "tokio", "xcm-runtime-pezapis", @@ -17821,7 +17800,7 @@ dependencies = [ "pezstaging-xcm-executor", "scale-info", "serde", - "serde_derive", + "serde_derive 1.0.228 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json", "smallvec", "tiny-keccak", @@ -19982,7 +19961,7 @@ dependencies = [ "env_logger 0.11.8", "futures", "futures-timer", - "indexmap 2.12.1", + "indexmap 2.13.0", "itertools 0.11.0", "linked-hash-map", "parity-scale-codec", @@ -20018,7 +19997,7 @@ version = "28.0.0" dependencies = [ "async-trait", "futures", - "indexmap 2.12.1", + "indexmap 2.13.0", "log", "parity-scale-codec", "pezsp-blockchain", @@ -22913,15 +22892,6 @@ dependencies = [ "rand_core 0.9.3", ] -[[package]] -name = "rapidhash" -version = "4.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2988730ee014541157f48ce4dcc603940e00915edc3c7f9a8d78092256bb2493" -dependencies = [ - "rustversion", -] - [[package]] name = "raw-cpuid" version = "11.6.0" @@ -24412,11 +24382,10 @@ checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" [[package]] name = "serde" version = "1.0.228" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +source = "git+https://github.com/pezkuwichain/serde.git?branch=fix-wasm32v1-none#c03215db8d6a3894badae73f46ebd1ef8c74261c" dependencies = [ "serde_core", - "serde_derive", + "serde_derive 1.0.228 (git+https://github.com/pezkuwichain/serde.git?branch=fix-wasm32v1-none)", ] [[package]] @@ -24451,10 +24420,9 @@ dependencies = [ [[package]] name = "serde_core" version = "1.0.228" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +source = "git+https://github.com/pezkuwichain/serde.git?branch=fix-wasm32v1-none#c03215db8d6a3894badae73f46ebd1ef8c74261c" dependencies = [ - "serde_derive", + "serde_derive 1.0.228 (git+https://github.com/pezkuwichain/serde.git?branch=fix-wasm32v1-none)", ] [[package]] @@ -24468,6 +24436,16 @@ dependencies = [ "syn 2.0.114", ] +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "git+https://github.com/pezkuwichain/serde.git?branch=fix-wasm32v1-none#c03215db8d6a3894badae73f46ebd1ef8c74261c" +dependencies = [ + "proc-macro2 1.0.105", + "quote 1.0.43", + "syn 2.0.114", +] + [[package]] name = "serde_derive_internals" version = "0.29.1" @@ -24494,7 +24472,7 @@ version = "1.0.149" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" dependencies = [ - "indexmap 2.12.1", + "indexmap 2.13.0", "itoa", "memchr", "serde", @@ -24542,7 +24520,7 @@ dependencies = [ "chrono", "hex", "indexmap 1.9.3", - "indexmap 2.12.1", + "indexmap 2.13.0", "schemars 0.9.0", "schemars 1.2.0", "serde_core", @@ -24569,7 +24547,7 @@ version = "0.9.34+deprecated" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" dependencies = [ - "indexmap 2.12.1", + "indexmap 2.13.0", "itoa", "ryu", "serde", @@ -25053,7 +25031,7 @@ dependencies = [ "futures-util", "hashbrown 0.15.5", "hashlink 0.10.0", - "indexmap 2.12.1", + "indexmap 2.13.0", "log", "memchr", "once_cell", @@ -26291,7 +26269,7 @@ version = "0.9.10+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0825052159284a1a8b4d6c0c86cbc801f2da5afd2b225fa548c72f2e74002f48" dependencies = [ - "indexmap 2.12.1", + "indexmap 2.13.0", "serde_core", "serde_spanned 1.0.4", "toml_datetime 0.7.5+spec-1.1.0", @@ -26324,7 +26302,7 @@ version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ - "indexmap 2.12.1", + "indexmap 2.13.0", "toml_datetime 0.6.11", "winnow 0.5.40", ] @@ -26335,7 +26313,7 @@ version = "0.22.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a" dependencies = [ - "indexmap 2.12.1", + "indexmap 2.13.0", "serde", "serde_spanned 0.6.9", "toml_datetime 0.6.11", @@ -26349,7 +26327,7 @@ version = "0.23.10+spec-1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "84c8b9f757e028cee9fa244aea147aab2a9ec09d5325a9b01e0a49730c2b5269" dependencies = [ - "indexmap 2.12.1", + "indexmap 2.13.0", "toml_datetime 0.7.5+spec-1.1.0", "toml_parser", "winnow 0.7.14", @@ -26623,7 +26601,7 @@ dependencies = [ "dissimilar", "glob", "serde", - "serde_derive", + "serde_derive 1.0.228 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json", "target-triple", "termcolor", @@ -26869,7 +26847,7 @@ dependencies = [ "idna", "percent-encoding", "serde", - "serde_derive", + "serde_derive 1.0.228 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -27355,7 +27333,7 @@ checksum = "8c9d90bb93e764f6beabf1d02028c70a2156a6583e63ac4218dd07ef733368b0" dependencies = [ "bitflags 2.10.0", "hashbrown 0.15.5", - "indexmap 2.12.1", + "indexmap 2.13.0", "semver 1.0.27", "serde", ] @@ -27367,7 +27345,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" dependencies = [ "bitflags 2.10.0", - "indexmap 2.12.1", + "indexmap 2.13.0", "semver 1.0.27", ] @@ -27407,7 +27385,7 @@ dependencies = [ "fxprof-processed-profile", "gimli 0.32.3", "hashbrown 0.15.5", - "indexmap 2.12.1", + "indexmap 2.13.0", "ittapi", "libc", "log", @@ -27420,7 +27398,7 @@ dependencies = [ "rayon", "rustix 1.1.3", "serde", - "serde_derive", + "serde_derive 1.0.228 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json", "smallvec", "target-lexicon", @@ -27451,13 +27429,13 @@ dependencies = [ "cranelift-bitset", "cranelift-entity", "gimli 0.32.3", - "indexmap 2.12.1", + "indexmap 2.13.0", "log", "object 0.37.3", "postcard", "rustc-demangle", "serde", - "serde_derive", + "serde_derive 1.0.228 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec", "target-lexicon", "wasm-encoder 0.239.0", @@ -27487,7 +27465,7 @@ dependencies = [ "postcard", "rustix 1.1.3", "serde", - "serde_derive", + "serde_derive 1.0.228 (registry+https://github.com/rust-lang/crates.io-index)", "sha2 0.10.9", "toml 0.8.23", "windows-sys 0.60.2", @@ -28693,7 +28671,7 @@ dependencies = [ "pezstaging-xcm-executor", "scale-info", "serde", - "serde_derive", + "serde_derive 1.0.228 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json", "tokio", "xcm-runtime-pezapis", @@ -28731,18 +28709,18 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.8.32" +version = "0.8.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fabae64378cb18147bb18bca364e63bdbe72a0ffe4adf0addfec8aa166b2c56" +checksum = "668f5168d10b9ee831de31933dc111a459c97ec93225beb307aed970d1372dfd" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.32" +version = "0.8.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9c2d862265a8bb4471d87e033e730f536e2a285cc7cb05dbce09a2a97075f90" +checksum = "2c7962b26b0a8685668b671ee4b54d007a67d4eaf05fda79ac0ecf41e32270f1" dependencies = [ "proc-macro2 1.0.105", "quote 1.0.43", diff --git a/Cargo.toml b/Cargo.toml index d456f4df..5f5907ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" }