Skip to content

Commit 9ee48d9

Browse files
committed
feat: upgraded edition and removed lazy_static
1 parent e0d788a commit 9ee48d9

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ readme = "README.md"
1111
repository = "https://github.com/Hugal31/yara-rust"
1212
keywords = ["yara"]
1313
categories = ["api-bindings"]
14-
edition = "2018"
14+
edition = "2021"
15+
rust-version = "1.63"
1516

1617
[features]
1718
default = ["bindgen", 'module-dotnet', 'module-dex', 'module-macho', 'module-hash', 'ndebug']
@@ -33,7 +34,6 @@ yara-static = ["yara-sys/yara-static"]
3334
[dependencies]
3435
bitflags = "2.2"
3536
thiserror = "1.0"
36-
lazy_static = "1.4"
3737
serde = { version = "1.0", features = ["derive"], optional = true }
3838

3939
[dev-dependencies]

src/internals/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use std::sync::Mutex;
22

3-
use lazy_static::lazy_static;
43
pub use yara_sys;
54

65
use crate::errors::*;
@@ -23,9 +22,7 @@ mod rules;
2322
mod scan;
2423
mod stream;
2524

26-
lazy_static! {
27-
static ref INIT_MUTEX: Mutex<()> = Mutex::new(());
28-
}
25+
static INIT_MUTEX: Mutex<()> = Mutex::new(());
2926

3027
/// Initialize the Yara library
3128
///

0 commit comments

Comments
 (0)