From 3d2ec33ffe7c04442b40ced6bf22cbad0dec7892 Mon Sep 17 00:00:00 2001 From: Aleksi Juvani Date: Tue, 2 Jul 2019 21:04:29 +0300 Subject: [PATCH] Remove Metal dependency on macOS --- CHANGELOG.md | 1 + Cargo.toml | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cde86e2629..6b72129be7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and `WindowEvent::HoveredFile`. - Revert the use of invisible surfaces in Wayland, which introduced graphical glitches with OpenGL (#835) - On X11, implement `_NET_WM_PING` to allow desktop environment to kill unresponsive programs. - On Windows, when a window is initially invisible, it won't take focus from the existing visible windows. +- On macOS, drop unused Metal dependency. # 0.20.0 Alpha 1 diff --git a/Cargo.toml b/Cargo.toml index 15e3d4ebbb..456a5fb7e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,10 +35,14 @@ objc = "0.2.3" cocoa = "0.18.4" core-foundation = "0.6" core-graphics = "0.17.3" -core-video-sys = "0.1.2" dispatch = "0.1.4" objc = "0.2.3" +[target.'cfg(target_os = "macos")'.dependencies.core-video-sys] +version = "0.1.3" +default_features = false +features = ["display_link"] + [target.'cfg(target_os = "windows")'.dependencies] bitflags = "1"