From 3e9ebe119bc79d9506901586aa975684c2a4c7f6 Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Sat, 2 Jan 2016 11:59:59 +0100 Subject: [PATCH] Updated various things * Only depend on Win32 APIs on Windows * Only depend on Cocoa/etc APIs on Mac * Bump to 0.2.0 * Added description, keywords, etc --- Cargo.toml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 066f0ca..549cc2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,10 @@ [package] name = "minifb" -version = "0.1.0" +version = "0.2.0" authors = ["Daniel Collin "] +description = "Cross-platform window setup for bitmap rendering" +keywords = ["windowing", "framebuffer"] +repository = "https://github.com/emoon/rust_minifb" build = "build.rs" [build-dependencies] @@ -9,8 +12,51 @@ gcc = "0.3.19" [dependencies] libc = "0.2" +time = "0.1.34" + +[target.x86_64-apple-darwin.dependencies] +cocoa = "0.2" +core-foundation = "0" +core-graphics = "0" + +[target.x86_64-pc-windows-msvc.dependencies] user32-sys = "0.1.2" winapi = "0.2.4" kernel32-sys = "0.1.4" gdi32-sys = "0.1.1" -time = "0.1.34" + +[target.x86_64-pc-windows-gnu.dependencies] +user32-sys = "0.1.2" +winapi = "0.2.4" +kernel32-sys = "0.1.4" +gdi32-sys = "0.1.1" + +[target.i686-pc-windows-msvc.dependencies] +user32-sys = "0.1.2" +winapi = "0.2.4" +kernel32-sys = "0.1.4" +gdi32-sys = "0.1.1" + +[target.i686-pc-windows-gnu.dependencies] +user32-sys = "0.1.2" +winapi = "0.2.4" +kernel32-sys = "0.1.4" +gdi32-sys = "0.1.1" + +[target.i686-unknown-linux-gnu.dependencies] +x11-dl = "~2.2" + +[target.x86_64-unknown-linux-gnu.dependencies] +x11-dl = "~2.2" + +[target.arm-unknown-linux-gnueabihf.dependencies] +x11-dl = "~2.2" + +[target.aarch64-unknown-linux-gnu.dependencies] +x11-dl = "~2.2" + +[target.x86_64-unknown-dragonfly.dependencies] +x11-dl = "~2.2" + +[target.x86_64-unknown-freebsd.dependencies] +x11-dl = "~2.2"