Auto merge of #231 - servo:scrollhide, r=jrmuizel

Hide a 10.13+ API behind a cargo feature.

Fixes #230.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/231)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo
2018-07-20 11:29:44 -04:00
committed by GitHub
4 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ name = "cocoa"
description = "Bindings to Cocoa for OS X"
homepage = "https://github.com/servo/core-foundation-rs"
repository = "https://github.com/servo/core-foundation-rs"
version = "0.16.0"
version = "0.16.1"
authors = ["The Servo Project Developers"]
license = "MIT / Apache-2.0"
@@ -16,5 +16,5 @@ crate-type = ["rlib"]
block = "0.1"
bitflags = "1.0"
libc = "0.2"
core-graphics = { path = "../core-graphics", version = "0.15" }
core-graphics = { path = "../core-graphics", version = "0.16" }
objc = "0.2.3"
+2 -1
View File
@@ -3,13 +3,14 @@ name = "core-graphics"
description = "Bindings to Core Graphics for OS X"
homepage = "https://github.com/servo/core-graphics-rs"
repository = "https://github.com/servo/core-foundation-rs"
version = "0.15.0"
version = "0.16.0"
authors = ["The Servo Project Developers"]
license = "MIT / Apache-2.0"
[features]
default = []
elcapitan = []
highsierra = []
[dependencies]
bitflags = "1.0"
+2
View File
@@ -443,6 +443,7 @@ impl CGEvent {
}
}
#[cfg(feature = "highsierra")]
pub fn new_scroll_event(
source: CGEventSource,
units: CGScrollEventUnit,
@@ -584,6 +585,7 @@ extern {
///
/// This function allows you to create a scrolling event and customize the
/// event before posting it to the event system.
#[cfg(feature = "highsierra")]
fn CGEventCreateScrollWheelEvent2(
source: ::sys::CGEventSourceRef,
units: CGScrollEventUnit,
+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "core-text"
version = "10.0.0"
version = "10.0.1"
authors = ["The Servo Project Developers"]
description = "Bindings to the Core Text framework."
license = "MIT/Apache-2.0"
@@ -16,4 +16,4 @@ mountainlion = []
foreign-types = "0.3"
libc = "0.2"
core-foundation = { path = "../core-foundation", version = "0.6" }
core-graphics = { path = "../core-graphics", version = "0.15" }
core-graphics = { path = "../core-graphics", version = "0.16" }