aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-cache
diff options
context:
space:
mode:
authorafon <[email protected]>2024-03-11 03:30:10 +0000
committerAndrew Hauck <[email protected]>2024-04-05 11:46:20 -0700
commitaca70af5e59eaaf28a2a6bd73169af6ab7437e87 (patch)
tree86ae0f96b4f96c971ed78f55b432c95171058cf8 /pingora-cache
parentb26d59983c4a69eaf8f6701e6b931a812f75f598 (diff)
downloadpingora-aca70af5e59eaaf28a2a6bd73169af6ab7437e87.tar.gz
pingora-aca70af5e59eaaf28a2a6bd73169af6ab7437e87.zip
Only compile pingora-openssl when openssl feature is enabled.
Replicated-from: https://github.com/cloudflare/pingora/pull/131 Includes-commit: ae706cdf49324f6f871b2bfd712f01f07b1dfed0
Diffstat (limited to 'pingora-cache')
-rw-r--r--pingora-cache/Cargo.toml7
1 files changed, 6 insertions, 1 deletions
diff --git a/pingora-cache/Cargo.toml b/pingora-cache/Cargo.toml
index 3add293..06bc864 100644
--- a/pingora-cache/Cargo.toml
+++ b/pingora-cache/Cargo.toml
@@ -17,7 +17,7 @@ name = "pingora_cache"
path = "src/lib.rs"
[dependencies]
-pingora-core = { version = "0.1.0", path = "../pingora-core" }
+pingora-core = { version = "0.1.0", path = "../pingora-core", default-features = false }
pingora-error = { version = "0.1.0", path = "../pingora-error" }
pingora-header-serde = { version = "0.1.0", path = "../pingora-header-serde" }
pingora-http = { version = "0.1.0", path = "../pingora-http" }
@@ -62,3 +62,8 @@ harness = false
[[bench]]
name = "lru_serde"
harness = false
+
+[features]
+default = ["openssl"]
+openssl = ["pingora-core/openssl"]
+boringssl = ["pingora-core/boringssl"]