How can I get the Docs.rs documentation to build for a crate that depends on a library like Webkit2GTK, which doesn't compile on the Docs.rs system? So far, I've tried this approach:
[features]
docs = []
[package.metadata.docs.rs]
features = [ "docs" ]
[target.'cfg(not(feature = "docs"))'.dependencies]
# {{ GTK Dependencies }}
But due to a bug in Cargo that doesn't work. I also tried convincing Docs.rs to build for macOS instead with default-target = "x86_64-apple-darwin"
, but it still built the crate for Linux, anyway. Here's the crate I'm trying to get Docs.rs to build.