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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user