We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d6be22c + 1a4a0a3 commit b80eee3Copy full SHA for b80eee3
Cargo.toml
@@ -11,3 +11,6 @@ A library to run the pkg-config system tool at build time in order to be used in
11
Cargo build scripts.
12
"""
13
keywords = ["build-dependencies"]
14
+
15
+[dev-dependencies]
16
+lazy_static = "0.2"
tests/test.rs
@@ -1,13 +1,15 @@
1
-#![feature(static_mutex)]
2
-
3
extern crate pkg_config;
+#[macro_use]
+extern crate lazy_static;
4
5
use pkg_config::Error;
6
use std::env;
7
-use std::sync::{StaticMutex, MUTEX_INIT};
+use std::sync::Mutex;
8
use std::path::PathBuf;
9
10
-static LOCK: StaticMutex = MUTEX_INIT;
+lazy_static! {
+ static ref LOCK: Mutex<()> = Mutex::new(());
+}
fn reset() {
for (k, _) in env::vars() {
0 commit comments