mirror of
https://github.com/VirusTotal/yara-x.git
synced 2026-10-12 02:10:01 +00:00
yara-x-capi depended on yara-x with `default-features = true`, which enabled every default module regardless of the capi module features (`pe-module`, `elf-module`, ...). As Cargo features are additive, the per-module features could never be used to build the C API without a given module, e.g. to avoid the modules that pull in crypto crates. Inherit the workspace dependency instead, which already has `default-features = false`. The default capi build is unchanged, as `default` already enables `yara-x/default-modules`. This is the same issue #766 fixed for `yara-x-py`.