From 1d9ceb9ddff11c3511cfe7a847ff26e67d3b5f30 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Tue, 21 Oct 2014 21:23:51 +0200 Subject: [PATCH] Update for Cargo's platform-specific dependencies --- Cargo.toml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b50db83f..0ed3e068 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ version = "0.0.1" authors = ["tomaka "] [features] -default = ["cocoa", "window"] +default = ["window"] window = [] headless = [] @@ -18,9 +18,14 @@ git = "https://github.com/tomaka/android-rs-glue" [dependencies.gl_generator] git = "https://github.com/bjz/gl-rs" -[dependencies.cocoa] +[target.i686-apple-darwin.dependencies.cocoa] git = "https://github.com/DavidPartouche/rust-cocoa" -optional = true -[dependencies.core_foundation] +[target.x86_64-apple-darwin.dependencies.cocoa] +git = "https://github.com/DavidPartouche/rust-cocoa" + +[target.i686-apple-darwin.dependencies.core_foundation] +git = "https://github.com/servo/rust-core-foundation" + +[target.x86_64-apple-darwin.dependencies.core_foundation] git = "https://github.com/servo/rust-core-foundation"