mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
CI: Check that rustdocs can be generated (#972)
This commit is contained in:
@@ -131,6 +131,17 @@ cargo-check-benches:
|
|||||||
- time cargo check --all --benches
|
- time cargo check --all --benches
|
||||||
- sccache -s
|
- sccache -s
|
||||||
|
|
||||||
|
check-rustdoc:
|
||||||
|
stage: test
|
||||||
|
<<: *docker-env
|
||||||
|
variables:
|
||||||
|
<<: *default-vars
|
||||||
|
SKIP_WASM_BUILD: 1
|
||||||
|
RUSTDOCFLAGS: "-Dwarnings"
|
||||||
|
script:
|
||||||
|
- time cargo +nightly doc --workspace --all-features --verbose --no-deps
|
||||||
|
- sccache -s
|
||||||
|
|
||||||
#### stage: publish
|
#### stage: publish
|
||||||
|
|
||||||
publish-s3:
|
publish-s3:
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
//!
|
//!
|
||||||
//! This extends the Substrate provided AuRa consensus implementation to make it compatible for
|
//! This extends the Substrate provided AuRa consensus implementation to make it compatible for
|
||||||
//! parachains. The main entry points for of this consensus algorithm are [`AuraConsensus::build`]
|
//! parachains. The main entry points for of this consensus algorithm are [`AuraConsensus::build`]
|
||||||
//! and [`import_queue`].
|
//! and [`fn@import_queue`].
|
||||||
//!
|
//!
|
||||||
//! For more information about AuRa, the Substrate crate should be checked.
|
//! For more information about AuRa, the Substrate crate should be checked.
|
||||||
|
|
||||||
@@ -216,7 +216,7 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Parameters of [`AuraConsensus:build`].
|
/// Parameters of [`AuraConsensus::build`].
|
||||||
pub struct BuildAuraConsensusParams<PF, BI, CIDP, Client, BS, SO> {
|
pub struct BuildAuraConsensusParams<PF, BI, CIDP, Client, BS, SO> {
|
||||||
pub proposer_factory: PF,
|
pub proposer_factory: PF,
|
||||||
pub create_inherent_data_providers: CIDP,
|
pub create_inherent_data_providers: CIDP,
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ impl TryFrom<&'_ CollationSecondedSignal> for BlockAnnounceData {
|
|||||||
/// will call this validator and provides the extra data that was attached to the announcement.
|
/// will call this validator and provides the extra data that was attached to the announcement.
|
||||||
/// We call this extra data `justification`.
|
/// We call this extra data `justification`.
|
||||||
/// It is expected that the attached data is a SCALE encoded [`BlockAnnounceData`]. The
|
/// It is expected that the attached data is a SCALE encoded [`BlockAnnounceData`]. The
|
||||||
/// statement is checked to be a [`CompactStatement::Candidate`] and that it is signed by an active
|
/// statement is checked to be a [`CompactStatement::Seconded`] and that it is signed by an active
|
||||||
/// parachain validator.
|
/// parachain validator.
|
||||||
///
|
///
|
||||||
/// If no justification was provided we check if the block announcement is at the tip of the known
|
/// If no justification was provided we check if the block announcement is at the tip of the known
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
//!
|
//!
|
||||||
//! ## Implementation
|
//! ## Implementation
|
||||||
//!
|
//!
|
||||||
//! The final [`Collators`] are aggregated from two individual lists:
|
//! The final `Collators` are aggregated from two individual lists:
|
||||||
//!
|
//!
|
||||||
//! 1. [`Invulnerables`]: a set of collators appointed by governance. These accounts will always be
|
//! 1. [`Invulnerables`]: a set of collators appointed by governance. These accounts will always be
|
||||||
//! collators.
|
//! collators.
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ use frame_support::{
|
|||||||
};
|
};
|
||||||
use frame_system::{ensure_none, ensure_root};
|
use frame_system::{ensure_none, ensure_root};
|
||||||
use polkadot_parachain::primitives::RelayChainBlockNumber;
|
use polkadot_parachain::primitives::RelayChainBlockNumber;
|
||||||
use relay_state_snapshot::MessagingStateSnapshot;
|
|
||||||
use sp_runtime::{
|
use sp_runtime::{
|
||||||
traits::{Block as BlockT, BlockNumberProvider, Hash},
|
traits::{Block as BlockT, BlockNumberProvider, Hash},
|
||||||
transaction_validity::{
|
transaction_validity::{
|
||||||
@@ -85,7 +84,7 @@ mod tests;
|
|||||||
/// # fn main() {}
|
/// # fn main() {}
|
||||||
/// ```
|
/// ```
|
||||||
pub use cumulus_pallet_parachain_system_proc_macro::register_validate_block;
|
pub use cumulus_pallet_parachain_system_proc_macro::register_validate_block;
|
||||||
pub use relay_state_snapshot::RelayChainStateProof;
|
pub use relay_state_snapshot::{MessagingStateSnapshot, RelayChainStateProof};
|
||||||
|
|
||||||
pub use pallet::*;
|
pub use pallet::*;
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ impl_opaque_keys! {
|
|||||||
pub struct SessionKeys {}
|
pub struct SessionKeys {}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Some key that we set in genesis and only read in [`TestRuntimeUpgrade`] to ensure that
|
/// Some key that we set in genesis and only read in [`TestOnRuntimeUpgrade`] to ensure that
|
||||||
/// [`OnRuntimeUpgrade`] works as expected.
|
/// [`OnRuntimeUpgrade`] works as expected.
|
||||||
pub const TEST_RUNTIME_UPGRADE_KEY: &[u8] = b"+test_runtime_upgrade_key+";
|
pub const TEST_RUNTIME_UPGRADE_KEY: &[u8] = b"+test_runtime_upgrade_key+";
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ pub fn get_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Pu
|
|||||||
.public()
|
.public()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The extensions for the [`ChainSpec`].
|
/// The extensions for the [`ChainSpec`](crate::ChainSpec).
|
||||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, ChainSpecGroup, ChainSpecExtension)]
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, ChainSpecGroup, ChainSpecExtension)]
|
||||||
#[serde(deny_unknown_fields)]
|
#[serde(deny_unknown_fields)]
|
||||||
pub struct Extensions {
|
pub struct Extensions {
|
||||||
|
|||||||
Reference in New Issue
Block a user