diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index cad769c1..a25ab67b 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -28,10 +28,13 @@ jobs: timeout-minutes: 45 container: image: ${{ needs.preflight.outputs.IMAGE }} + volumes: + - /cache/cargo-target/pezkuwi-sdk:/cache/target env: RUSTFLAGS: "-D warnings" SKIP_WASM_BUILD: 1 CARGO_INCREMENTAL: 0 + CARGO_TARGET_DIR: /cache/target steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.1.7 @@ -56,9 +59,12 @@ jobs: timeout-minutes: 45 container: image: ${{ needs.preflight.outputs.IMAGE }} + volumes: + - /cache/cargo-target/pezkuwi-sdk:/cache/target env: SKIP_WASM_BUILD: 1 CARGO_INCREMENTAL: 0 + CARGO_TARGET_DIR: /cache/target steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.1.7 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 49a1ac9e..4520fb70 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -25,19 +25,16 @@ jobs: needs: [preflight] container: image: ${{ needs.preflight.outputs.IMAGE }} + volumes: + - /cache/cargo-target/pezkuwi-sdk:/cache/target env: RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings" SKIP_WASM_BUILD: 1 CARGO_INCREMENTAL: 0 + CARGO_TARGET_DIR: /cache/target steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - name: Rust Cache - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8 - with: - shared-key: test-doc - cache-on-failure: true - # Exclude pezkuwi-zombienet-sdk-tests: its build.rs runs nested cargo build # which doesn't inherit workspace [patch.crates-io] settings, causing # serde_core duplicate lang item error. See: https://github.com/pezkuwichain/pezkuwi-sdk/issues/357 @@ -51,19 +48,16 @@ jobs: needs: [preflight] container: image: ${{ needs.preflight.outputs.IMAGE }} + volumes: + - /cache/cargo-target/pezkuwi-sdk:/cache/target env: SKIP_WASM_BUILD: 1 CARGO_INCREMENTAL: 0 + CARGO_TARGET_DIR: /cache/target RUSTDOCFLAGS: "-Dwarnings --default-theme=ayu --html-in-header ./docs/sdk/assets/header.html --extend-css ./docs/sdk/assets/theme.css --html-after-content ./docs/sdk/assets/after-content.html" steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - name: Rust Cache - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8 - with: - shared-key: build-rustdoc - cache-on-failure: true - # Exclude pezkuwi-zombienet-sdk-tests: nested cargo build in build.rs # doesn't inherit workspace patches. See test-doc job comment. - run: cargo doc --all-features --workspace --no-deps --locked --exclude pezkuwi-zombienet-sdk-tests diff --git a/.github/workflows/tests-linux-stable.yml b/.github/workflows/tests-linux-stable.yml index 438c766e..0cfe6cf5 100644 --- a/.github/workflows/tests-linux-stable.yml +++ b/.github/workflows/tests-linux-stable.yml @@ -26,6 +26,8 @@ jobs: timeout-minutes: 60 container: image: ${{ needs.preflight.outputs.IMAGE }} + volumes: + - /cache/cargo-target/pezkuwi-sdk:/cache/target env: RUSTFLAGS: "-C debug-assertions -D warnings" RUST_BACKTRACE: 1 @@ -36,6 +38,7 @@ jobs: # Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug # Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358 SKIP_WASM_BUILD: 1 + CARGO_TARGET_DIR: /cache/target steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 @@ -53,6 +56,8 @@ jobs: timeout-minutes: 60 container: image: ${{ needs.preflight.outputs.IMAGE }} + volumes: + - /cache/cargo-target/pezkuwi-sdk:/cache/target env: RUST_TOOLCHAIN: stable # Enable debug assertions since we are running optimized builds for testing @@ -61,6 +66,7 @@ jobs: # Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug # Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358 SKIP_WASM_BUILD: 1 + CARGO_TARGET_DIR: /cache/target steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 @@ -81,6 +87,8 @@ jobs: container: image: ${{ needs.preflight.outputs.IMAGE }} options: --privileged + volumes: + - /cache/cargo-target/pezkuwi-sdk:/cache/target env: RUST_TOOLCHAIN: stable RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings" @@ -88,16 +96,11 @@ jobs: # Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug # Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358 SKIP_WASM_BUILD: 1 + CARGO_TARGET_DIR: /cache/target steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - name: Rust Cache - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8 - with: - shared-key: linux-stable-${{ matrix.partition }} - cache-on-failure: true - - name: Add wasm32v1-none target run: rustup target add wasm32v1-none || true @@ -128,6 +131,8 @@ jobs: container: image: ${{ needs.preflight.outputs.IMAGE }} options: --privileged + volumes: + - /cache/cargo-target/pezkuwi-sdk:/cache/target strategy: fail-fast: false matrix: @@ -140,6 +145,7 @@ jobs: # Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug # Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358 SKIP_WASM_BUILD: 1 + CARGO_TARGET_DIR: /cache/target steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 diff --git a/vendor/pezkuwi-subxt/core/Cargo.toml b/vendor/pezkuwi-subxt/core/Cargo.toml index f2a8226f..53a4be84 100644 --- a/vendor/pezkuwi-subxt/core/Cargo.toml +++ b/vendor/pezkuwi-subxt/core/Cargo.toml @@ -17,38 +17,38 @@ keywords = ["extrinsic", "no-std", "parity", "subxt"] [features] default = ["std"] std = [ - "bitvec/std", - "blake2/std", - "codec/std", - "frame-decode/std", - "frame-metadata/std", - "hex/std", - "impl-serde/std", - "keccak-hash/std", - "pezkuwi-subxt-macro/std", - "pezkuwi-subxt-metadata/std", - "pezkuwi-subxt-signer/std", - "pezsp-core/std", - "pezsp-crypto-hashing/std", - "pezsp-keyring/std", - "primitive-types/std", - "scale-info/std", - "serde/std", - "serde_json/std", - "tracing/std", - "pezsp-runtime/std", + "bitvec/std", + "blake2/std", + "codec/std", + "frame-decode/std", + "frame-metadata/std", + "hex/std", + "impl-serde/std", + "keccak-hash/std", + "pezkuwi-subxt-macro/std", + "pezkuwi-subxt-metadata/std", + "pezkuwi-subxt-signer/std", + "pezsp-core/std", + "pezsp-crypto-hashing/std", + "pezsp-keyring/std", + "pezsp-runtime/std", + "primitive-types/std", + "scale-info/std", + "serde/std", + "serde_json/std", + "tracing/std", ] serde = [] runtime-benchmarks = [ - "pezkuwi-subxt-macro/runtime-benchmarks", - "pezkuwi-subxt-signer/runtime-benchmarks", - "pezsp-keyring/runtime-benchmarks", - "pezsp-runtime/runtime-benchmarks", + "pezkuwi-subxt-macro/runtime-benchmarks", + "pezkuwi-subxt-signer/runtime-benchmarks", + "pezsp-keyring/runtime-benchmarks", + "pezsp-runtime/runtime-benchmarks", ] [dependencies] codec = { package = "parity-scale-codec", workspace = true, default-features = false, features = [ - "derive", + "derive", ] } derive-where = { workspace = true } frame-decode = { workspace = true } @@ -59,22 +59,22 @@ pezkuwi-subxt-metadata = { workspace = true, default-features = false } pezsp-crypto-hashing = { workspace = true } scale-bits = { workspace = true, default-features = false } scale-decode = { workspace = true, default-features = false, features = [ - "derive", - "primitive-types", + "derive", + "primitive-types", ] } scale-encode = { workspace = true, default-features = false, features = [ - "bits", - "derive", - "primitive-types", + "bits", + "derive", + "primitive-types", ] } scale-info = { workspace = true, default-features = false, features = [ - "bit-vec", + "bit-vec", ] } scale-value = { workspace = true, default-features = false } serde = { workspace = true, default-features = false, features = ["derive"] } serde_json = { workspace = true, default-features = false, features = [ - "alloc", - "raw_value", + "alloc", + "raw_value", ] } thiserror = { workspace = true } tracing = { workspace = true, default-features = false } @@ -86,9 +86,9 @@ blake2 = { workspace = true } # Provides some deserialization, types like U256/H256 and hashing impls like twox/blake256: impl-serde = { workspace = true, default-features = false } primitive-types = { workspace = true, default-features = false, features = [ - "codec", - "scale-info", - "serde_no_std", + "codec", + "scale-info", + "serde_no_std", ] } # AccountId20