Closed muteb closed 1 year ago
@muteb hello! Maybe I don't understand, but feature openssl-static
is in yara-sys
: https://github.com/Hugal31/yara-rust/blob/master/yara-sys/Cargo.toml#L27
@muteb can you show your Cargo.toml
file? I think, You have older version of yara
...
Thank you very much foe the quick repose. Well I have the pe model enabled in Yara rules and I need to use openssl at some stage but every time I need to do scan, I ship libcrypto-1_1-x64.dll with the app. I got really happy when adding openssl-static feature as I think it will solve the dll issue. Here is my cargo.toml:
[package]
name = "malhunt"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
yara = { version = "0.17.0" }
yara-sys = { version = "0.17.0", features = ["bundled-4_2_3", "vendored","openssl-static"]}
zip = "0.6.3"
serde = { version = "1.*", features = ["derive"] }
serde_json = { version = "1.0" }
serde_derive = "1.*"
yaml-rust = "0.4.*"
walkdir ="2.3.2"
serde_yaml = "0.9.17"
hhmmss = "*"
pbr = "*"
tokio = { version = "1", features = ["full"] }
nested="*"
chrono="*"
@muteb I get it! It doesn't release yet) Latest release was on 14 Feb, but I created PR(https://github.com/Hugal31/yara-rust/pull/104) on 3 Mar...
OK thanks alot.
I'm trying to compile the code with the feature vendored as well as openssl-static but I get this error. I suspect that I'm doing it wrong but I have no idea how. any help will be appreciated :).
yara = { version = "0.17.0" } yara-sys = { version = "0.17.0", features = ["bundled-4_2_3", "vendored","openssl-static"]}
error: failed to select a version for
yara-sys
. ... required by packagesweeper v1.1.0 ***
... which satisfies path dependencysweeper
(locked to 1.1.0) of packagesweeper v0.1.0 ***
versions that meet the requirements^0.17.0
(locked to 0.17.0) are: 0.17.0the package
sweeper
depends onyara-sys
, with features:openssl-static
butyara-sys
does not have these features.failed to select a version for
yara-sys
which could resolve this conflict