generate docs for feature gated items (#1332)

* generate docs for feature-gated items on crates.io

* add newline in Cargo.toml

* unify newlines

* fix clippy

* introduce macros for features

* commit missing file

* Update subxt/src/lib.rs

* make it compile
This commit is contained in:
Niklas Adolfsson authored and GitHub committed 2024-01-12 14:18:34 +01:00
1 parent ee95026186
commit 437ff7ee41
20 files changed
+204 -86

No files matched your search

+2
View File
@@ -7,6 +7,7 @@
//! be used directly if preferable.
#![deny(unused_crate_dependencies, missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]
mod api;
pub mod error;
@@ -16,6 +17,7 @@ mod ir;
// macro and CLI tool, so they only live here because this is a common
// crate that both depend on.
#[cfg(feature = "fetch-metadata")]
#[cfg_attr(docsrs, doc(cfg(feature = "fetch-metadata")))]
pub mod fetch_metadata;
#[cfg(feature = "web")]