Add doc_cfg attribute

This commit is contained in:
Kogia-sima 2020-12-17 17:06:34 +09:00
parent daa6f4878d
commit 8e07927f19
2 changed files with 6 additions and 0 deletions

View File

@ -28,3 +28,7 @@ optional = true
[build-dependencies]
version_check = "0.9.2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

View File

@ -32,12 +32,14 @@
html_logo_url = "https://raw.githubusercontent.com/Kogia-sima/sailfish/master/resources/icon.png"
)]
#![cfg_attr(sailfish_nightly, feature(core_intrinsics))]
#![cfg_attr(docsrs, feature(doc_cfg))]
pub mod runtime;
use runtime::Buffer;
pub use runtime::{RenderError, RenderResult};
#[cfg(feature = "derive")]
#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
pub use sailfish_macros::TemplateOnce;
/// Template that can be rendered with consuming itself.