Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down