Skip to content

Commit

Permalink
chore: reduce the number of dependencies by disabling unused features…
Browse files Browse the repository at this point in the history
… from `wasmtime`

With this change all default `wasmtime` features are disabled, and the ones that are actually used are explicitly enabled. This required changes in the implementation of shift operations, which were using the WAMS `select` instruction. Using this instruction requires enabling references and garbage collection, which is an overkill.
  • Loading branch information
plusvic committed Aug 30, 2024
1 parent 2586737 commit cc07498
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 243 deletions.
221 changes: 1 addition & 220 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ thiserror = "1.0.61"
tlsh-fixed = "0.1.1"
uuid = "1.4.1"
walrus = "0.21.1"
wasmtime = "22.0.0"
wasmtime = { version = "22.0.0", default-features = false }
x509-parser = "0.16.0"
yaml-rust = "0.4.5"
yansi = "1.0.1"
Expand Down
2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ thiserror = { workspace = true }
tlsh-fixed = { workspace = true, optional = true }
uuid = { workspace = true, optional = true, features = ["v4"] }
walrus = { workspace = true }
wasmtime = { workspace = true, features = ["cranelift", "parallel-compilation"] }
wasmtime = { workspace = true, default-features = false, features = ["cranelift", "parallel-compilation", "runtime"] }
x509-parser = { workspace = true, optional = true }
yansi = { workspace = true }
yara-x-macros = { workspace = true }
Expand Down
Loading

0 comments on commit cc07498

Please sign in to comment.