diff --git a/Cargo.toml b/Cargo.toml index cef799a..0e6f1f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,6 +21,9 @@ yara = "0.20.0" yara-sys = { version = "0.20.0", features = ["yara-static"] } zip = "0.6.6" +[target.'cfg(target_os = "macos")'.dependencies] +yara-sys = { version = "0.20.0", features = ["yara-static", "vendored"] } + [profile.release] strip = true lto = true diff --git a/README.md b/README.md index 8665a53..0509da3 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,15 @@ This section goes over how to set up a client instance locally and via Docker. export YARA_LIBRARY_PATH='/path/to/yara/libs' ``` +> [!IMPORTANT] +> When building on an arm-based distribution of macOS, be sure to specify +> the following environment variables: +> | Name | Example Value | +> |-------------------|-------------------------------------------| +> | YARA_INCLUDE_DIR | /opt/homebrew/Cellar/yara/4.3.2_1/include | +> | YARA_LIBRARY_PATH | /opt/homebrew/Cellar/yara/4.3.2_1/lib | +> | YARA_OPENSSL_DIR | /opt/homebrew/opt/openssl@3.2 | + #### 2. Build the binary with `cargo` ```sh