Skip to content

Commit

Permalink
chore: remove parallel-compilation from default features
Browse files Browse the repository at this point in the history
This feature must be explicitly enabled.
  • Loading branch information
plusvic committed Sep 9, 2024
1 parent 6ff1258 commit 831db9c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion capi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ crate-type = ["staticlib", "cdylib"]

[dependencies]
serde_json = { workspace = true }
yara-x = { workspace = true }
yara-x = { workspace = true, features = ["parallel-compilation"] }

[build-dependencies]
cbindgen = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protobuf = { workspace = true }
protobuf-json-mapping = { workspace = true }
serde_json = { workspace = true, features = ["preserve_order"] }
yansi = { workspace = true }
yara-x = { workspace = true }
yara-x = { workspace = true, features = ["parallel-compilation"] }
yara-x-parser = { workspace = true }
yara-x-proto-yaml = { workspace = true }
yara-x-fmt = { workspace = true }
Expand Down
5 changes: 1 addition & 4 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,14 @@ logging = ["dep:log"]
# threads, which can be problematic in some scenarios. See:
# https://github.com/VirusTotal/yara-x/issues/182
#
# This feature is enabled by default.
# This feature is disabled by default.
parallel-compilation = ["wasmtime/parallel-compilation"]

# Enables rules profiling. When this is enabled together with `logging` the
# logs will contain information about the most expensive rules after each
# scan. Notice that profiling itself has a noticeable impact on performance.
rules-profiling = ["logging"]


# When enabled use the logic included in the `x509-parser` crate for verifying
# certificates. If not enabled we use our ouwn logic. This is disabled by
# default.
Expand Down Expand Up @@ -167,14 +166,12 @@ text-module = [
# conditions of a rule to check against other epoch time.
time-module = []


# Features that are enabled by default.
default = [
"constant-folding",
"cuckoo-module",
"exact-atoms",
"fast-regexp",
"parallel-compilation",
"console-module",
"dotnet-module",
"elf-module",
Expand Down
2 changes: 1 addition & 1 deletion py/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pyo3-file = "0.8.0"
serde_json = { workspace = true }

protobuf-json-mapping = { workspace = true }
yara-x = { workspace = true }
yara-x = { workspace = true, features = ["parallel-compilation"] }

[build-dependencies]
pyo3-build-config = "0.21.2"

0 comments on commit 831db9c

Please sign in to comment.