From 83b7809a182013db04690d0c4a01dcf716a5e122 Mon Sep 17 00:00:00 2001 From: StackOverflowExcept1on <109800286+StackOverflowExcept1on@users.noreply.github.com> Date: Mon, 7 Oct 2024 10:51:44 +0300 Subject: [PATCH] chore(docs): disable `ethexe` feature on docs.rs, improve docs.gear.rs (#4278) --- Makefile | 4 +++- gstd/Cargo.toml | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d887b79f8a5..ff5ca2f4fef 100644 --- a/Makefile +++ b/Makefile @@ -277,9 +277,11 @@ doc: @ RUSTDOCFLAGS="--enable-index-page --generate-link-to-definition -Zunstable-options -D warnings" cargo doc --no-deps \ -p galloc -p gclient -p gcore -p gear-core-backend \ -p gear-core -p gear-core-processor -p gear-lazy-pages -p gear-core-errors \ - -p gmeta -p gstd -p gtest -p gear-wasm-builder -p gear-common \ + -p gmeta -p gtest -p gear-wasm-builder -p gear-common \ -p pallet-gear -p pallet-gear-gas -p pallet-gear-messenger -p pallet-gear-payment \ -p pallet-gear-program -p pallet-gear-rpc-runtime-api -p pallet-gear-rpc -p pallet-gear-scheduler -p gsdk + @ RUSTDOCFLAGS="--enable-index-page --generate-link-to-definition -Zunstable-options -D warnings" cargo doc --no-deps \ + -p gstd -F document-features @ cp -f images/logo.svg target/doc/rust-logo.svg .PHONY: kill-gear diff --git a/gstd/Cargo.toml b/gstd/Cargo.toml index b9c6645045b..df917736edc 100644 --- a/gstd/Cargo.toml +++ b/gstd/Cargo.toml @@ -28,7 +28,8 @@ futures = { workspace = true, features = ["alloc"] } waker-fn = "1.2.0" [features] -#! ## Default features +#! ## Default features: +#! - `panic-message` default = ["panic-message"] @@ -82,4 +83,4 @@ debug = ["galloc/debug", "gcore/debug"] #! [rust-51540]: https://github.com/rust-lang/rust/issues/51540 [package.metadata.docs.rs] -all-features = true +features = ["document-features"]