put subzero dependency under a feature flag

This commit is contained in:
Ruslan Talpa
2025-07-04 11:27:36 +03:00
parent b54872a4dc
commit afa4e48071
3 changed files with 6 additions and 7 deletions

1
Cargo.lock generated
View File

@@ -7107,6 +7107,7 @@ checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc"
[[package]]
name = "subzero-core"
version = "3.0.1"
source = "git+https://github.com/neondatabase-labs/subzero?rev=35e8f59d57404f57cbc84f7c486cbbc147602c98#35e8f59d57404f57cbc84f7c486cbbc147602c98"
dependencies = [
"base64 0.22.1",
"csv",

View File

@@ -207,9 +207,6 @@ tonic = { version = "0.13.1", default-features = false, features = ["channel", "
tonic-reflection = { version = "0.13.1", features = ["server"] }
tower = { version = "0.5.2", default-features = false }
tower-http = { version = "0.6.2", features = ["auth", "request-id", "trace"] }
subzero-core = { version = "3.0.1", path = "../subzero/core", features = ["postgresql"] }
jsonpath_lib = "0.3.0"
ouroboros = "0.18"
# This revision uses opentelemetry 0.27. There's no tag for it.
tower-otel = { git = "https://github.com/mattiapenati/tower-otel", rev = "56a7321053bcb72443888257b622ba0d43a11fcd" }

View File

@@ -5,8 +5,9 @@ edition = "2024"
license.workspace = true
[features]
default = []
default = ["subzero"]
testing = ["dep:tokio-postgres"]
subzero = ["subzero-core", "jsonpath_lib", "ouroboros"]
[dependencies]
ahash.workspace = true
@@ -103,9 +104,9 @@ uuid.workspace = true
x509-cert.workspace = true
redis.workspace = true
zerocopy.workspace = true
subzero-core.workspace = true
jsonpath_lib.workspace = true
ouroboros.workspace = true
subzero-core = { git = "https://github.com/neondatabase-labs/subzero", rev = "35e8f59d57404f57cbc84f7c486cbbc147602c98", features = ["postgresql"], optional = true }
jsonpath_lib = { version = "0.3.0", optional = true }
ouroboros = { version = "0.18", optional = true }
# jwt stuff
jose-jwa = "0.1.2"