From 3bd5e56e3fabbe394c004e9505c0bc4cf018a042 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 4 Aug 2016 19:59:29 +0200 Subject: [PATCH] Use upstream lazy_static and update once crate --- Cargo.toml | 6 +++++- src/lib.rs | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6c5ef366..35dcf09c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ version = "0.1.0" [dependencies] bit_field = "0.1.0" bitflags = "0.7.0" -once = "0.2.1" +once = "0.3.2" rlibc = "0.1.4" spin = "0.3.4" @@ -20,6 +20,10 @@ git = "https://github.com/phil-opp/multiboot2-elf64" default-features = false version = "0.7.1" +[dependencies.lazy_static] +version = "0.2.1" +features = ["spin_no_std"] + [lib] crate-type = ["staticlib"] diff --git a/src/lib.rs b/src/lib.rs index 79d4025c..a58f091e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,6 +24,8 @@ extern crate x86; #[macro_use] extern crate once; extern crate bit_field; +#[macro_use] +extern crate lazy_static; extern crate hole_list_allocator; extern crate alloc;