Repository: servo/core-foundation-rs (language: rust)

Issue:
Show all functions of all features in docs
Some of the functions are only enabled when a feature is activated. Let's take the `core-graphics` crate as an example. The documentation of the `core_graphics::event::CGEvent` struct is missing an entry for `new_scroll_event`. That is because it is only available with the `highsierra` feature. I discovered that this function exists after looking at the code. Ideally it should be part of the documentation.

I believe one way to fix this is to add

```
[package.metadata.docs.rs]
features = ["elcapitan, highsierra"]
```
to the `Cargo.toml` file of `core-graphics` (and similar code to all the other crates that have features of this repo).


Discussion / hints:

Fix patch:
diff --git a/core-foundation-sys/Cargo.toml b/core-foundation-sys/Cargo.toml
index 81ed52a1f..bdf4e1f07 100644
--- a/core-foundation-sys/Cargo.toml
+++ b/core-foundation-sys/Cargo.toml
@@ -14,4 +14,5 @@ mac_os_10_7_support = [] # backwards compatibility
 mac_os_10_8_features = [] # enables new features
 
 [package.metadata.docs.rs]
+all-features = true
 default-target = "x86_64-apple-darwin"
diff --git a/core-foundation/Cargo.toml b/core-foundation/Cargo.toml
index 6d691c61f..c895f9907 100644
--- a/core-foundation/Cargo.toml
+++ b/core-foundation/Cargo.toml
@@ -25,4 +25,5 @@ with-chrono = ["chrono"]
 with-uuid = ["uuid"]
 
 [package.metadata.docs.rs]
+all-features = true
 default-target = "x86_64-apple-darwin"
diff --git a/core-graphics/Cargo.toml b/core-graphics/Cargo.toml
index f8d5d3b2a..9933000c1 100644
--- a/core-graphics/Cargo.toml
+++ b/core-graphics/Cargo.toml
@@ -20,4 +20,5 @@ foreign-types = "0.5.0"
 libc = "0.2"
 
 [package.metadata.docs.rs]
+all-features = true
 default-target = "x86_64-apple-darwin"
diff --git a/core-text/Cargo.toml b/core-text/Cargo.toml
index 19ea02562..a08fb6fb6 100644
--- a/core-text/Cargo.toml
+++ b/core-text/Cargo.toml
@@ -7,6 +7,7 @@ license = "MIT OR Apache-2.0"
 repository = "https://github.com/servo/core-foundation-rs"
 
 [package.metadata.docs.rs]
+all-features = true
 default-target = "x86_64-apple-darwin"
 
 [features]


Test patch: