We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3410f88 commit 38dba4dCopy full SHA for 38dba4d
Cargo.toml
@@ -9,7 +9,6 @@ readme = "README.md"
9
10
[dependencies]
11
libz-sys = { version = "1.1", optional = true }
12
-lazy_static = "1.0"
13
14
[dev-dependencies]
15
dlopen = "0.1"
src/lib.rs
@@ -1,5 +1,3 @@
1
-#[macro_use]
2
-extern crate lazy_static;
3
// This extern crates are needed for linking
4
#[cfg(test)]
5
extern crate dlopen;
src/shaders/mod.rs
@@ -21,9 +21,7 @@ use std::slice;
21
use std::str;
22
use std::sync::Mutex;
23
24
-lazy_static! {
25
- static ref CONSTRUCT_COMPILER_LOCK: Mutex<()> = Mutex::new(());
26
-}
+static CONSTRUCT_COMPILER_LOCK: Mutex<()> = Mutex::new(());
27
28
pub fn initialize() -> Result<(), &'static str> {
29
if unsafe { GLSLangInitialize() } == 0 {
0 commit comments