From 16c1261d8265265bc618f03cccc11cddb1f70697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 28 May 2020 04:03:51 +0200 Subject: [PATCH] Enable `doc_cfg` for `docs.rs` in `iced_glow` --- glow/Cargo.toml | 4 ++++ glow/src/lib.rs | 1 + 2 files changed, 5 insertions(+) diff --git a/glow/Cargo.toml b/glow/Cargo.toml index a18fffe1..262f0264 100644 --- a/glow/Cargo.toml +++ b/glow/Cargo.toml @@ -30,3 +30,7 @@ path = "../native" version = "0.1" path = "../graphics" features = ["font-source", "font-fallback", "font-icons", "opengl"] + +[package.metadata.docs.rs] +rustdoc-args = ["--cfg", "docsrs"] +all-features = true diff --git a/glow/src/lib.rs b/glow/src/lib.rs index 9e9564ca..c427d13a 100644 --- a/glow/src/lib.rs +++ b/glow/src/lib.rs @@ -6,6 +6,7 @@ #![deny(missing_debug_implementations)] #![deny(unused_results)] #![forbid(rust_2018_idioms)] +#![cfg_attr(docsrs, feature(doc_cfg))] mod backend; mod program;