mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-29 22:51:03 +00:00
Deny warning when building doc (#10387)
* deny warning * add new job * fix doc * fmt
This commit is contained in:
committed by
GitHub
parent
b3648e88e8
commit
cf1eb73046
@@ -650,6 +650,18 @@ build-macos-subkey:
|
|||||||
tags:
|
tags:
|
||||||
- osx
|
- osx
|
||||||
|
|
||||||
|
check-rustdoc:
|
||||||
|
stage: test
|
||||||
|
<<: *docker-env
|
||||||
|
<<: *test-refs
|
||||||
|
variables:
|
||||||
|
<<: *default-vars
|
||||||
|
SKIP_WASM_BUILD: 1
|
||||||
|
RUSTDOCFLAGS: "-Dwarnings"
|
||||||
|
script:
|
||||||
|
- time cargo +nightly doc --workspace --all-features --verbose --no-deps
|
||||||
|
- sccache -s
|
||||||
|
|
||||||
build-rustdoc:
|
build-rustdoc:
|
||||||
stage: build
|
stage: build
|
||||||
<<: *docker-env
|
<<: *docker-env
|
||||||
@@ -665,7 +677,6 @@ build-rustdoc:
|
|||||||
paths:
|
paths:
|
||||||
- ./crate-docs/
|
- ./crate-docs/
|
||||||
script:
|
script:
|
||||||
# FIXME: it fails with `RUSTDOCFLAGS="-Dwarnings"`
|
|
||||||
- time cargo +nightly doc --workspace --all-features --verbose
|
- time cargo +nightly doc --workspace --all-features --verbose
|
||||||
- rm -f ./target/doc/.lock
|
- rm -f ./target/doc/.lock
|
||||||
- mv ./target/doc ./crate-docs
|
- mv ./target/doc ./crate-docs
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ pub type BeefyPayloadId = [u8; 2];
|
|||||||
pub mod known_payload_ids {
|
pub mod known_payload_ids {
|
||||||
use crate::BeefyPayloadId;
|
use crate::BeefyPayloadId;
|
||||||
|
|
||||||
/// A [`Payload`] identifier for Merkle Mountain Range root hash.
|
/// A [`Payload`](super::Payload) identifier for Merkle Mountain Range root hash.
|
||||||
///
|
///
|
||||||
/// Encoded value should contain a [`beefy_primitives::MmrRootHash`] type (i.e. 32-bytes hash).
|
/// Encoded value should contain a [`crate::MmrRootHash`] type (i.e. 32-bytes hash).
|
||||||
pub const MMR_ROOT_ID: BeefyPayloadId = *b"mh";
|
pub const MMR_ROOT_ID: BeefyPayloadId = *b"mh";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -137,7 +137,7 @@ where
|
|||||||
///
|
///
|
||||||
/// Note that SCALE-encoding of the structure is optimized for size efficiency over the wire,
|
/// Note that SCALE-encoding of the structure is optimized for size efficiency over the wire,
|
||||||
/// please take a look at custom [`Encode`] and [`Decode`] implementations and
|
/// please take a look at custom [`Encode`] and [`Decode`] implementations and
|
||||||
/// [`CompactSignedCommitment`] struct.
|
/// `CompactSignedCommitment` struct.
|
||||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||||
pub struct SignedCommitment<TBlockNumber> {
|
pub struct SignedCommitment<TBlockNumber> {
|
||||||
/// The commitment signatures are collected for.
|
/// The commitment signatures are collected for.
|
||||||
|
|||||||
@@ -738,7 +738,7 @@ impl<B: BlockT + DeserializeOwned> Builder<B> {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Just a utility wrapper of [`inject_hashed_prefix`] that injects
|
/// Just a utility wrapper of [`Self::inject_hashed_prefix`] that injects
|
||||||
/// [`DEFAULT_CHILD_STORAGE_KEY_PREFIX`] as a prefix.
|
/// [`DEFAULT_CHILD_STORAGE_KEY_PREFIX`] as a prefix.
|
||||||
///
|
///
|
||||||
/// If set, this will guarantee that the child-tree data of ALL pallets will be downloaded.
|
/// If set, this will guarantee that the child-tree data of ALL pallets will be downloaded.
|
||||||
@@ -747,9 +747,9 @@ impl<B: BlockT + DeserializeOwned> Builder<B> {
|
|||||||
///
|
///
|
||||||
/// Otherwise, the only other way to make sure a child-tree is manually included is to inject
|
/// Otherwise, the only other way to make sure a child-tree is manually included is to inject
|
||||||
/// its root (`DEFAULT_CHILD_STORAGE_KEY_PREFIX`, plus some other postfix) into
|
/// its root (`DEFAULT_CHILD_STORAGE_KEY_PREFIX`, plus some other postfix) into
|
||||||
/// [`inject_hashed_key`]. Unfortunately, there's no federated way of managing child tree roots
|
/// [`Self::inject_hashed_key`]. Unfortunately, there's no federated way of managing child tree
|
||||||
/// as of now and each pallet does its own thing. Therefore, it is not possible for this library
|
/// roots as of now and each pallet does its own thing. Therefore, it is not possible for this
|
||||||
/// to automatically include child trees of pallet X, when its top keys are included.
|
/// library to automatically include child trees of pallet X, when its top keys are included.
|
||||||
pub fn inject_default_child_tree_prefix(self) -> Self {
|
pub fn inject_default_child_tree_prefix(self) -> Self {
|
||||||
self.inject_hashed_prefix(DEFAULT_CHILD_STORAGE_KEY_PREFIX)
|
self.inject_hashed_prefix(DEFAULT_CHILD_STORAGE_KEY_PREFIX)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user