📝 Add feature label on docs.rs

This commit is contained in:
Manuel Cillero 2023-07-21 19:01:18 +02:00
parent 09ac316cb5
commit 025dcd9b17
2 changed files with 4 additions and 0 deletions

View file

@ -83,3 +83,4 @@ pagetop-build = { version = "0.0", path = "../pagetop-build" }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

View file

@ -96,6 +96,8 @@
//! Pero también deberán declararse explícitamente estas dependencias en cada módulo para ayudar a
//! PageTop a estructurar e inicializar modularmente la aplicación.
#![cfg_attr(docsrs, feature(doc_cfg))]
// *************************************************************************************************
// RE-EXPORTED MACROS.
// *************************************************************************************************
@ -135,6 +137,7 @@ pub mod locale;
pub mod html;
// Acceso a base de datos.
#[cfg_attr(docsrs, doc(cfg(feature = "database")))]
#[cfg(feature = "database")]
pub mod db;