summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-05 04:52:03 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-05 04:52:03 +0200
commit335ad1dd1d5bfa65e9a3174fcecd9e1fe871646d (patch)
treef9bf96a234e5adfdb86120882173cc73ed2a0110
parent7479ba137f75a7d3116a4cf244c499d05df4aff2 (diff)
downloadiced-335ad1dd1d5bfa65e9a3174fcecd9e1fe871646d.tar.gz
iced-335ad1dd1d5bfa65e9a3174fcecd9e1fe871646d.tar.bz2
iced-335ad1dd1d5bfa65e9a3174fcecd9e1fe871646d.zip
Enable feature flags in `docs.rs`
-rw-r--r--Cargo.toml4
-rw-r--r--futures/Cargo.toml4
-rw-r--r--wgpu/Cargo.toml4
3 files changed, 12 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 286d49b5..c9e19653 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -65,3 +65,7 @@ iced_wgpu = { version = "0.2", path = "wgpu" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
iced_web = { version = "0.2", path = "web" }
+
+[package.metadata.docs.rs]
+rustdoc-args = ["--cfg", "docsrs"]
+features = ["image", "svg", "canvas"]
diff --git a/futures/Cargo.toml b/futures/Cargo.toml
index 869a30ba..3fe8719b 100644
--- a/futures/Cargo.toml
+++ b/futures/Cargo.toml
@@ -30,3 +30,7 @@ optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4"
+
+[package.metadata.docs.rs]
+rustdoc-args = ["--cfg", "docsrs"]
+all-features = true
diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml
index ca906894..d6659dd3 100644
--- a/wgpu/Cargo.toml
+++ b/wgpu/Cargo.toml
@@ -41,3 +41,7 @@ optional = true
[dependencies.lyon]
version = "0.15"
optional = true
+
+[package.metadata.docs.rs]
+rustdoc-args = ["--cfg", "docsrs"]
+all-features = true