📝 Add feature label on docs.rs
This commit is contained in:
parent
09ac316cb5
commit
025dcd9b17
2 changed files with 4 additions and 0 deletions
|
|
@ -83,3 +83,4 @@ pagetop-build = { version = "0.0", path = "../pagetop-build" }
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,8 @@
|
||||||
//! Pero también deberán declararse explícitamente estas dependencias en cada módulo para ayudar a
|
//! 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.
|
//! PageTop a estructurar e inicializar modularmente la aplicación.
|
||||||
|
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
// *************************************************************************************************
|
// *************************************************************************************************
|
||||||
// RE-EXPORTED MACROS.
|
// RE-EXPORTED MACROS.
|
||||||
// *************************************************************************************************
|
// *************************************************************************************************
|
||||||
|
|
@ -135,6 +137,7 @@ pub mod locale;
|
||||||
pub mod html;
|
pub mod html;
|
||||||
|
|
||||||
// Acceso a base de datos.
|
// Acceso a base de datos.
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "database")))]
|
||||||
#[cfg(feature = "database")]
|
#[cfg(feature = "database")]
|
||||||
pub mod db;
|
pub mod db;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue