Skip to content

Commit

Permalink
fix(docs): adjust manifest to fix docs.rs build (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog authored Oct 24, 2023
1 parent accbf0d commit 82908d4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/fix-docs-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wry": patch
---

Fix docs.rs build.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ categories = [ "gui" ]

[package.metadata.docs.rs]
no-default-features = true
features = [ "file-drop", "protocol" ]
features = [ "tao", "file-drop", "protocol", "webkit2gtk/dox" ]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"x86_64-apple-darwin"
]
rustc-args = [ "--cfg", "docsrs" ]
rustdoc-args = [ "--cfg", "docsrs" ]

[features]
default = [ "file-drop", "objc-exception", "protocol", "tao" ]
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
#![allow(clippy::type_complexity)]
#![allow(clippy::unit_cmp)]
#![allow(clippy::upper_case_acronyms)]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[macro_use]
extern crate serde;
Expand Down

0 comments on commit 82908d4

Please sign in to comment.