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