From 84a405ba9ff2a79d507dc6ee1ea3cf9bf48706d1 Mon Sep 17 00:00:00 2001 From: Ivan Ukhov Date: Tue, 20 Jan 2015 15:50:35 +0100 Subject: [PATCH 1/2] Update to Rust 1.0 Alpha --- Cargo.toml | 3 +-- src/lib.rs | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5036575..ae2a1bf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,9 @@ [package] - name = "cocoa" version = "0.1.1" authors = ["The Servo Project Developers"] +license = "MIT" [lib] - name = "cocoa" crate-type = ["rlib"] diff --git a/src/lib.rs b/src/lib.rs index ff84c99..746ad48 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,10 +10,7 @@ #![crate_name = "cocoa"] #![crate_type = "rlib"] -#![comment = "The Servo Parallel Browser Project"] -#![license = "MIT"] - -#![allow(non_snake_case)] +#![allow(missing_copy_implementations, non_snake_case, unstable)] extern crate libc; From 3372dec93a12fdbfa0df11d5a64700e2e3898da7 Mon Sep 17 00:00:00 2001 From: Ivan Ukhov Date: Tue, 20 Jan 2015 15:50:49 +0100 Subject: [PATCH 2/2] Update to Rust Nightly --- Cargo.toml | 3 +++ src/lib.rs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index ae2a1bf..de25f59 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,6 @@ license = "MIT" [lib] name = "cocoa" crate-type = ["rlib"] + +[dependencies] +bitflags = "0.1" diff --git a/src/lib.rs b/src/lib.rs index 746ad48..9fd21ce 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,6 +12,8 @@ #![allow(missing_copy_implementations, non_snake_case, unstable)] +#[macro_use] +extern crate bitflags; extern crate libc; #[cfg(target_os="macos")]