From f90c25d959d13d6c3b518da479e654dcf2ec1164 Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Thu, 13 Jul 2023 05:05:04 -0400 Subject: [PATCH] update to docify 0.2.0 / crate-relative embed paths (#14570) --- Cargo.lock | 11 +++++------ frame/fast-unstake/Cargo.toml | 2 +- frame/fast-unstake/src/lib.rs | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0b3258defb2a1..b975b4c32b034 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2133,23 +2133,22 @@ checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" [[package]] name = "docify" -version = "0.1.14" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15aa210b350ff62db3149ac5d0b2a0287c01ee91354e16290de344082b2b3ff6" +checksum = "f6491709f76fb7ceb951244daf624d480198b427556084391d6e3c33d3ae74b9" dependencies = [ "docify_macros", ] [[package]] name = "docify_macros" -version = "0.1.14" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bf3504ed030133996c59a9954669a7a4f869f93a7e74389e16149843db16f57" +checksum = "ffc5338a9f72ce29a81377d9039798fcc926fb471b2004666caf48e446dffbbf" dependencies = [ "common-path", "derive-syn-parse", - "lazy_static", - "prettyplease 0.2.6", + "once_cell", "proc-macro2", "quote", "regex", diff --git a/frame/fast-unstake/Cargo.toml b/frame/fast-unstake/Cargo.toml index bac64925ea35c..c628da7123f2e 100644 --- a/frame/fast-unstake/Cargo.toml +++ b/frame/fast-unstake/Cargo.toml @@ -27,7 +27,7 @@ frame-election-provider-support = { default-features = false, path = "../electio frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true, path = "../benchmarking" } -docify = "0.1.13" +docify = "0.2.0" [dev-dependencies] pallet-staking-reward-curve = { version = "4.0.0-dev", path = "../staking/reward-curve" } diff --git a/frame/fast-unstake/src/lib.rs b/frame/fast-unstake/src/lib.rs index 9be5878f2e199..99742dbb75ae5 100644 --- a/frame/fast-unstake/src/lib.rs +++ b/frame/fast-unstake/src/lib.rs @@ -71,10 +71,10 @@ //! ### Example //! //! 1. Fast-unstake with multiple participants in the queue. -#![doc = docify::embed!("frame/fast-unstake/src/tests.rs", successful_multi_queue)] +#![doc = docify::embed!("src/tests.rs", successful_multi_queue)] //! //! 2. Fast unstake failing because a nominator is exposed. -#![doc = docify::embed!("frame/fast-unstake/src/tests.rs", exposed_nominator_cannot_unstake)] +#![doc = docify::embed!("src/tests.rs", exposed_nominator_cannot_unstake)] //! //! ## Pallet API //!