fix: update docs.yml test flags and clean up ensure.rs comments

- Add --all-features and SKIP_WASM_BUILD=1 to cargo test --doc
- Remove outdated feature unification comment from pezpallet-tiki ensure.rs
This commit is contained in:
2025-12-24 11:49:46 +03:00
parent 5a930620c4
commit ee2385e28f
2 changed files with 2 additions and 16 deletions
+2 -1
View File
@@ -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 }}
@@ -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;