diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 71eb745a..dd8d9a06 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -32,10 +32,11 @@ jobs: cargo clean 2>/dev/null || true rm -rf ~/.cargo/registry/cache 2>/dev/null || true rm -rf ~/.cargo/git/db 2>/dev/null || true - - run: cargo test --doc --workspace --locked + - run: cargo test --doc --workspace --locked --all-features id: required env: RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings" + SKIP_WASM_BUILD: 1 build-rustdoc: runs-on: ${{ needs.preflight.outputs.RUNNER }} diff --git a/pezcumulus/teyrchains/pezpallets/tiki/src/ensure.rs b/pezcumulus/teyrchains/pezpallets/tiki/src/ensure.rs index 3f26a78f..2939aab6 100644 --- a/pezcumulus/teyrchains/pezpallets/tiki/src/ensure.rs +++ b/pezcumulus/teyrchains/pezpallets/tiki/src/ensure.rs @@ -2,21 +2,6 @@ //! //! This module provides `EnsureOrigin` implementations that verify //! the caller holds a specific Tiki role (Serok, Wezir, or Parlementer). -//! -//! # Feature Unification Note -//! -//! Due to Cargo's feature unification behavior, this pezpallet must be excluded -//! from `cargo check --benches` operations when its `runtime-benchmarks` feature -//! is not explicitly enabled. The CI workflow (tests-misc.yml) handles this -//! by excluding pezpallet-tiki and all its dependents. -//! -//! The issue: When building with `--benches`, other packages may enable -//! `pezframe-support/runtime-benchmarks`, which makes `EnsureOrigin::try_successful_origin` -//! a required trait method. However, if `pezpallet-tiki/runtime-benchmarks` is not enabled, -//! our cfg-gated method won't be compiled, causing E0046 errors. -//! -//! CI exclusion: .github/workflows/tests-misc.yml excludes this pezpallet with: -//! `--exclude pezpallet-tiki` in the `cargo check --benches` command. use crate::{Config, Pezpallet as TikiPallet}; use pezframe_support::traits::EnsureOrigin;