fix: resolve pez-kitchensink-runtime compilation errors
Umbrella Crate Fixes: - Add pezpallet-root-testing to umbrella (std, try-runtime, runtime-full) - Add pezpallet-xcm-benchmarks to umbrella (std, runtime-benchmarks, runtime-full) - Add re-exports in umbrella/src/lib.rs for both crates getrandom WASM Fix: - Move subxt crates from runtime-full to node feature - Prevents getrandom dependency leak into WASM builds Vendor Updates: - Fix pezkuwi-subxt for web/wasm target compatibility - Update pezkuwi-zombienet-sdk keystore imports Documentation: - Update WORKFLOW_PLAN.md with completed tasks - Update REBRAND_PROGRESS.md with umbrella fixes - Remove obsolete tracking files
This commit is contained in:
+6
-6
@@ -8,11 +8,10 @@
|
||||
#![deny(missing_docs)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
#[cfg(any(
|
||||
all(feature = "web", feature = "native"),
|
||||
not(any(feature = "web", feature = "native"))
|
||||
))]
|
||||
compile_error!("subxt-lightclient: exactly one of the 'web' and 'native' features should be used.");
|
||||
// Note: When both 'web' and 'native' features are enabled (e.g., --all-features),
|
||||
// 'native' takes priority. This allows CI to run with --all-features.
|
||||
#[cfg(not(any(feature = "web", feature = "native")))]
|
||||
compile_error!("subxt-lightclient: at least one of the 'web' or 'native' features must be enabled.");
|
||||
|
||||
mod platform;
|
||||
mod shared_client;
|
||||
@@ -246,12 +245,13 @@ impl Stream for LightClientRpcSubscription {
|
||||
}
|
||||
|
||||
/// A quick helper to spawn a task that works for WASM.
|
||||
/// When both 'native' and 'web' are enabled, 'native' takes priority.
|
||||
fn spawn<F: Future + Send + 'static>(future: F) {
|
||||
#[cfg(feature = "native")]
|
||||
tokio::spawn(async move {
|
||||
future.await;
|
||||
});
|
||||
#[cfg(feature = "web")]
|
||||
#[cfg(all(feature = "web", not(feature = "native")))]
|
||||
wasm_bindgen_futures::spawn_local(async move {
|
||||
future.await;
|
||||
});
|
||||
|
||||
+5
-4
@@ -3,12 +3,13 @@
|
||||
// see LICENSE for license details.
|
||||
|
||||
//! Default platform for WASM environments.
|
||||
//! When both 'native' and 'web' features are enabled, 'native' takes priority.
|
||||
|
||||
#[cfg(feature = "web")]
|
||||
#[cfg(all(feature = "web", not(feature = "native")))]
|
||||
mod wasm_helpers;
|
||||
#[cfg(feature = "web")]
|
||||
#[cfg(all(feature = "web", not(feature = "native")))]
|
||||
mod wasm_platform;
|
||||
#[cfg(feature = "web")]
|
||||
#[cfg(all(feature = "web", not(feature = "native")))]
|
||||
mod wasm_socket;
|
||||
|
||||
pub use helpers::{build_platform, DefaultPlatform};
|
||||
@@ -25,7 +26,7 @@ mod helpers {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "web")]
|
||||
#[cfg(all(feature = "web", not(feature = "native")))]
|
||||
mod helpers {
|
||||
use super::wasm_platform::SubxtPlatform as Platform;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user