Rust cargo doc for all features (#1995)

* run rustfix rustdoc in grandpa pallet benchmarks

* enable rustdoc for all features

* fix rialto parachain runtime compilation
This commit is contained in:
Svyatoslav Nikolsky
2023-03-27 11:20:32 +03:00
committed by Bastian Köcher
parent ae61d31507
commit 88fb2befa0
3 changed files with 6 additions and 3 deletions
@@ -83,10 +83,12 @@ runtime-benchmarks = [
'sp-runtime/runtime-benchmarks', 'sp-runtime/runtime-benchmarks',
'frame-benchmarking', 'frame-benchmarking',
'frame-support/runtime-benchmarks', 'frame-support/runtime-benchmarks',
'frame-system-benchmarking', 'frame-system-benchmarking/runtime-benchmarks',
'frame-system/runtime-benchmarks', 'frame-system/runtime-benchmarks',
'pallet-balances/runtime-benchmarks', 'pallet-balances/runtime-benchmarks',
'pallet-timestamp/runtime-benchmarks', 'pallet-timestamp/runtime-benchmarks',
'pallet-xcm/runtime-benchmarks',
'xcm-builder/runtime-benchmarks',
] ]
std = [ std = [
"bp-messages/std", "bp-messages/std",
+1
View File
@@ -45,5 +45,6 @@ frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate", bran
[features] [features]
default = [] default = []
runtime-benchmarks = [ runtime-benchmarks = [
"polkadot-service/runtime-benchmarks",
"rialto-runtime/runtime-benchmarks", "rialto-runtime/runtime-benchmarks",
] ]
+2 -2
View File
@@ -30,8 +30,8 @@
//! //!
//! Consider the following: //! Consider the following:
//! //!
//! / [B'] <- [C'] //! / B <- C'
//! [A] <- [B] <- [C] //! A <- B <- C
//! //!
//! The common ancestor of both forks is block A, so this is what GRANDPA will finalize. In order to //! The common ancestor of both forks is block A, so this is what GRANDPA will finalize. In order to
//! verify this we will have vote ancestries of `[B, C, B', C']` and pre-commits `[C, C']`. //! verify this we will have vote ancestries of `[B, C, B', C']` and pre-commits `[C, C']`.