Skip to content

Commit b80eee3

Browse files
authored
Merge pull request #27 from brson/next
Replace StaticMutex. Fixes #26
2 parents d6be22c + 1a4a0a3 commit b80eee3

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ A library to run the pkg-config system tool at build time in order to be used in
1111
Cargo build scripts.
1212
"""
1313
keywords = ["build-dependencies"]
14+
15+
[dev-dependencies]
16+
lazy_static = "0.2"

tests/test.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
#![feature(static_mutex)]
2-
31
extern crate pkg_config;
2+
#[macro_use]
3+
extern crate lazy_static;
44

55
use pkg_config::Error;
66
use std::env;
7-
use std::sync::{StaticMutex, MUTEX_INIT};
7+
use std::sync::Mutex;
88
use std::path::PathBuf;
99

10-
static LOCK: StaticMutex = MUTEX_INIT;
10+
lazy_static! {
11+
static ref LOCK: Mutex<()> = Mutex::new(());
12+
}
1113

1214
fn reset() {
1315
for (k, _) in env::vars() {

0 commit comments

Comments
 (0)