Cargo.toml (659B)
1 [package] 2 edition = "2021" 3 name = "mtrnord_node-yara-rs" 4 version = "0.0.0" 5 links = "jansson" 6 7 [lib] 8 crate-type = ["cdylib"] 9 10 [dependencies] 11 # Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix 12 napi = { version = "2.12.2", default-features = false, features = [ 13 "napi8", 14 "error_anyhow", 15 ] } 16 napi-derive = "2.12.2" 17 yara = { version = "0.21.0", features = ["yara-static"] } 18 19 [target.x86_64-pc-windows-msvc.dependencies] 20 yara = { version = "0.21.0", features = [ 21 "yara-static", 22 "vendored", 23 "module-macho", 24 "module-hash", 25 ] } 26 27 [build-dependencies] 28 napi-build = "2.0.1" 29 30 [profile.release] 31 lto = true