fix: constrain Smithy types to the compatible Document API

This commit is contained in:
Xuanwo
2026-09-15 07:36:09 +08:00
parent 5c61a1efc1
commit 17c15f6e6b
2 changed files with 5 additions and 1 deletions
Generated
+1
View File
@@ -5475,6 +5475,7 @@ dependencies = [
"aws-sdk-kms",
"aws-sdk-s3",
"aws-smithy-runtime",
"aws-smithy-types",
"bytes",
"candle-core",
"candle-nn",
+4 -1
View File
@@ -67,6 +67,8 @@ serde_json = { workspace = true }
async-openai = { version = "0.20.0", optional = true }
serde_with = { version = "3.8.1" }
tempfile = { workspace = true }
# Smithy JSON 0.63 still requires the pre-1.7 Document representation.
aws-smithy-types = { version = ">=1.3.6, <1.7", optional = true }
aws-sdk-bedrockruntime = { version = "1.27.0", optional = true }
# For remote feature
reqwest = { version = "0.12.0", default-features = false, features = [
@@ -123,6 +125,7 @@ pprof = { version = "0.14", features = ["flamegraph"] }
[features]
default = []
aws = [
"dep:aws-smithy-types",
"lance/aws",
"lance-io/aws",
"lance-namespace-impls/dir-aws",
@@ -169,7 +172,7 @@ metrics = ["dep:metrics", "lance/metrics", "lance-io/metrics"]
metrics-otel = ["metrics", "dep:metrics-util"]
fp16kernels = ["lance-linalg/fp16kernels"]
s3-test = []
bedrock = ["dep:aws-sdk-bedrockruntime"]
bedrock = ["dep:aws-sdk-bedrockruntime", "dep:aws-smithy-types"]
openai = ["dep:async-openai", "dep:reqwest"]
polars = ["dep:polars-arrow", "dep:polars"]
sentence-transformers = [