VirusTotal / yara-x

A rewrite of YARA in Rust.
https://virustotal.github.io/yara-x/
BSD 3-Clause "New" or "Revised" License
565 stars 46 forks source link

Build error: wasmtime-runtime dep issue #130

Closed captainGeech42 closed 1 month ago

captainGeech42 commented 1 month ago
user@host:~/src/yara-x$ cargo install --path cli
  Installing yara-x-cli v0.3.0 (./src/yara-x/cli)
    Updating crates.io index
error: failed to compile `yara-x-cli v0.3.0 (./src/yara-x/cli)`, intermediate artifacts can be found at `./src/yara-x/target`

Caused by:
  failed to select a version for `wasmtime`.
      ... required by package `yara-x v0.3.0 (./src/yara-x/lib)`
      ... which satisfies path dependency `yara-x` of package `yara-x-cli v0.3.0 (./src/yara-x/cli)`
  versions that meet the requirements `^19.0.1` are: 19.0.2, 19.0.1

  the package `yara-x` depends on `wasmtime`, with features: `wasmtime-runtime` but `wasmtime` does not have these features.
   It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.

  failed to select a version for `wasmtime` which could resolve this conflict

this is on the latest commit to main (e8dedd7), with rustc 1.70.0 and cargo 1.69.1 on a Debian Testing-based distro.

plusvic commented 1 month ago

The minimum supported Rust version (MSRV) is 1.74. Can you upgrade and test again?

captainGeech42 commented 1 month ago

I upgraded to 1.78.0 and was able to successfully build, thx!