Skip to content

Commit

Permalink
chore: add feature openssl-static for linking OpenSSL statically.
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Feb 5, 2024
1 parent 2443936 commit 0443b6e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions yara-x/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ homepage.workspace = true
rust-version.workspace = true

[features]
# When this feature is enabled the OpenSSL library is linked statically.
# However, you need to specify the path where the library and its header files
# are located by setting the environment variable OPENSSL_DIR. For example:
#
# OPENSSL_DIR=/usr/local/Cellar/openssl@3/3.2.0_1/ cargo build --feature openssl-static
#
# The directory specified in OPENSSL_DIR must contain subdirectories /include
# and /lib. The latter must contain `libcrypto.a`.
#
# You can also set OPENSSL_INCLUDE_DIR and OPENSSL_LIB_DIR, for setting the
# two directories independently.
openssl-static = ['authenticode-parser/openssl-static']

# Enables constant folding. When constant folding is enabled, expressions
# like `2+2+2` and `true or false`, whose value can be determined at compile
# time, will be reduced to its final value, instead of producing code that
Expand Down

0 comments on commit 0443b6e

Please sign in to comment.