Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit adca498

Browse files
authored
Fix doc build with --all-features (#8277)
* implement * make default pre/post_upgrade * simplify Cargo.toml * revert removal of outdated/private links * link in pallet-mmr
1 parent 3233d29 commit adca498

File tree

40 files changed

+59
-57
lines changed

40 files changed

+59
-57
lines changed

.maintain/frame-weight-template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Autogenerated weights for {{pallet}}
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}}
21-
//! DATE: {{date}}, STEPS: {{cmd.steps}}, REPEAT: {{cmd.repeat}}, LOW RANGE: {{cmd.lowest_range_values}}, HIGH RANGE: {{cmd.highest_range_values}}
21+
//! DATE: {{date}}, STEPS: `{{cmd.steps}}`, REPEAT: {{cmd.repeat}}, LOW RANGE: `{{cmd.lowest_range_values}}`, HIGH RANGE: `{{cmd.highest_range_values}}`
2222
//! EXECUTION: {{cmd.execution}}, WASM-EXECUTION: {{cmd.wasm_execution}}, CHAIN: {{cmd.chain}}, DB CACHE: {{cmd.db_cache}}
2323

2424
// Executed Command:

bin/node-template/pallets/template/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/// Edit this file to define custom logic or remove it if it is not needed.
44
/// Learn more about FRAME and the core library of Substrate FRAME pallets:
5-
/// https://substrate.dev/docs/en/knowledgebase/runtime/frame
5+
/// <https://substrate.dev/docs/en/knowledgebase/runtime/frame>
66
77
pub use pallet::*;
88

bin/node/runtime/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,5 @@ try-runtime = [
234234
"pallet-society/try-runtime",
235235
"pallet-recovery/try-runtime",
236236
"pallet-vesting/try-runtime",
237+
"pallet-gilt/try-runtime",
237238
]

bin/node/runtime/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,6 @@ impl_runtime_apis! {
14041404
#[cfg(feature = "try-runtime")]
14051405
impl frame_try_runtime::TryRuntime<Block> for Runtime {
14061406
fn on_runtime_upgrade() -> Result<(Weight, Weight), sp_runtime::RuntimeString> {
1407-
frame_support::debug::RuntimeLogger::init();
14081407
let weight = Executive::try_runtime_upgrade()?;
14091408
Ok((weight, RuntimeBlockWeights::get().max_block))
14101409
}

client/network/src/config.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,19 @@ pub struct Params<B: BlockT, H: ExHashT> {
109109
/// protocol name. In addition all of [`RequestResponseConfig`] is used to handle incoming block
110110
/// requests, if enabled.
111111
///
112-
/// Can be constructed either via [`block_request_handler::generate_protocol_config`] allowing
113-
/// outgoing but not incoming requests, or constructed via
114-
/// [`block_request_handler::BlockRequestHandler::new`] allowing both outgoing and incoming
115-
/// requests.
112+
/// Can be constructed either via [`crate::block_request_handler::generate_protocol_config`]
113+
/// allowing outgoing but not incoming requests, or constructed via
114+
/// [`crate::block_request_handler::BlockRequestHandler::new`] allowing both outgoing and
115+
/// incoming requests.
116116
pub block_request_protocol_config: RequestResponseConfig,
117117

118118
/// Request response configuration for the light client request protocol.
119119
///
120-
/// Can be constructed either via [`light_client_requests::generate_protocol_config`] allowing
121-
/// outgoing but not incoming requests, or constructed via
122-
/// [`light_client_requests::handler::LightClientRequestHandler::new`] allowing both outgoing
123-
/// and incoming requests.
120+
/// Can be constructed either via
121+
/// [`crate::light_client_requests::generate_protocol_config`] allowing outgoing but not
122+
/// incoming requests, or constructed via
123+
/// [`crate::light_client_requests::handler::LightClientRequestHandler::new`] allowing
124+
/// both outgoing and incoming requests.
124125
pub light_client_request_protocol_config: RequestResponseConfig,
125126
}
126127

client/network/src/light_client_requests/handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub struct LightClientRequestHandler<B: Block> {
6060
}
6161

6262
impl<B: Block> LightClientRequestHandler<B> {
63-
/// Create a new [`BlockRequestHandler`].
63+
/// Create a new [`crate::block_request_handler::BlockRequestHandler`].
6464
pub fn new(
6565
protocol_id: &ProtocolId,
6666
client: Arc<dyn Client<B>>,

client/tracing/src/logging/layers/prefix_layer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use tracing_subscriber::{layer::Context, registry::LookupSpan, Layer};
2323
pub const PREFIX_LOG_SPAN: &str = "substrate-log-prefix";
2424

2525
/// A `Layer` that captures the prefix span ([`PREFIX_LOG_SPAN`]) which is then used by
26-
/// [`EventFormat`] to prefix the log lines by customizable string.
26+
/// [`crate::logging::EventFormat`] to prefix the log lines by customizable string.
2727
///
2828
/// See the macro `sc_cli::prefix_logs_with!` for more details.
2929
pub struct PrefixLayer;

frame/assets/src/weights.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Autogenerated weights for pallet_assets
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.1
21-
//! DATE: 2021-01-18, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
21+
//! DATE: 2021-01-18, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
2323
2424
// Executed Command:

frame/bounties/src/weights.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Autogenerated weights for pallet_bounties
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0
21-
//! DATE: 2020-12-16, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
21+
//! DATE: 2020-12-16, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
2222
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
2323
2424
// Executed Command:

frame/collective/src/weights.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
//! Weights for pallet_collective
1919
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0
20-
//! DATE: 2020-10-27, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
20+
//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
2121
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
2222
2323
// Executed Command:

0 commit comments

Comments
 (0)