Enable feature flags in docs.rs

This commit is contained in:
Héctor Ramón Jiménez 2020-04-05 04:52:03 +02:00
parent 7479ba137f
commit 335ad1dd1d
3 changed files with 12 additions and 0 deletions

View File

@ -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"]

View File

@ -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

View File

@ -41,3 +41,7 @@ optional = true
[dependencies.lyon]
version = "0.15"
optional = true
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
all-features = true