summaryrefslogtreecommitdiffstats
path: root/glow
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-05-28 04:03:51 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-05-28 04:03:51 +0200
commit16c1261d8265265bc618f03cccc11cddb1f70697 (patch)
tree14d9a66c1414d20a6a47b26053f9e7a99c6cba85 /glow
parent4aa0d7a13a6fbf04e3fa24c444d562c2f1085b5b (diff)
downloadiced-16c1261d8265265bc618f03cccc11cddb1f70697.tar.gz
iced-16c1261d8265265bc618f03cccc11cddb1f70697.tar.bz2
iced-16c1261d8265265bc618f03cccc11cddb1f70697.zip
Enable `doc_cfg` for `docs.rs` in `iced_glow`
Diffstat (limited to 'glow')
-rw-r--r--glow/Cargo.toml4
-rw-r--r--glow/src/lib.rs1
2 files changed, 5 insertions, 0 deletions
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;