build(docs): build the Rust docs examples with lancedb's lance-namespace

The Rust docs crate pinned lance-namespace 7.0.0 while lancedb 0.31.0
uses 8.0.0, so the connection example, which passes lance-namespace
request types to lancedb, did not compile. It now pins 8.0.0, the
version lancedb 0.31.0 itself depends on.

It also enables lancedb's `remote` feature, without which the crate
cannot compile an example that connects to LanceDB Enterprise.

lancedb stays at 0.31.0 and no locked version changes: the lockfile
loses the lance 7.0.0 crates the old pin pulled in and gains the
`remote` feature's dependencies.
This commit is contained in:
Brendan Clement
2026-10-09 17:13:40 -07:00
parent d70261c2f4
commit bb2d741cb3
2 changed files with 189 additions and 138 deletions
+187 -136
View File
@@ -452,6 +452,61 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
[[package]]
name = "axum"
version = "0.7.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f"
dependencies = [
"async-trait",
"axum-core",
"bytes",
"futures-util",
"http",
"http-body",
"http-body-util",
"hyper",
"hyper-util",
"itoa",
"matchit",
"memchr",
"mime",
"percent-encoding",
"pin-project-lite",
"rustversion",
"serde",
"serde_json",
"serde_path_to_error",
"serde_urlencoded",
"sync_wrapper",
"tokio",
"tower",
"tower-layer",
"tower-service",
"tracing",
]
[[package]]
name = "axum-core"
version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09f2bd6146b97ae3359fa0cc6d6b376d9539582c7b4220f041a33ec24c226199"
dependencies = [
"async-trait",
"bytes",
"futures-util",
"http",
"http-body",
"http-body-util",
"mime",
"pin-project-lite",
"rustversion",
"sync_wrapper",
"tower-layer",
"tower-service",
"tracing",
]
[[package]]
name = "backtrace"
version = "0.3.76"
@@ -836,6 +891,16 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6"
[[package]]
name = "core-foundation"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
dependencies = [
"core-foundation-sys",
"libc",
]
[[package]]
name = "core-foundation"
version = "0.10.1"
@@ -1761,26 +1826,6 @@ dependencies = [
"uuid",
]
[[package]]
name = "deepsize"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1cdb987ec36f6bf7bfbea3f928b75590b736fc42af8e54d97592481351b2b96c"
dependencies = [
"deepsize_derive",
]
[[package]]
name = "deepsize_derive"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "990101d41f3bc8c1a45641024377ee284ecc338e5ecf3ea0f0e236d897c72796"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "deranged"
version = "0.5.5"
@@ -2408,6 +2453,12 @@ version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
[[package]]
name = "httpdate"
version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
[[package]]
name = "humantime"
version = "2.3.0"
@@ -2428,6 +2479,7 @@ dependencies = [
"http",
"http-body",
"httparse",
"httpdate",
"itoa",
"pin-project-lite",
"pin-utils",
@@ -2472,9 +2524,11 @@ dependencies = [
"percent-encoding",
"pin-project-lite",
"socket2",
"system-configuration",
"tokio",
"tower-service",
"tracing",
"windows-registry",
]
[[package]]
@@ -2930,15 +2984,15 @@ dependencies = [
"half",
"humantime",
"itertools 0.13.0",
"lance-arrow 8.0.0",
"lance-core 8.0.0",
"lance-arrow",
"lance-core",
"lance-datafusion",
"lance-encoding",
"lance-file",
"lance-index",
"lance-io",
"lance-linalg",
"lance-namespace 8.0.0",
"lance-namespace",
"lance-select",
"lance-table",
"lance-tokenizer",
@@ -2966,28 +3020,6 @@ dependencies = [
"uuid",
]
[[package]]
name = "lance-arrow"
version = "7.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "253f4a0a70580c985b91e65e9ca6cad644825a4078de28d8efbacf3ffbd7ecdc"
dependencies = [
"arrow-array",
"arrow-buffer",
"arrow-data",
"arrow-ipc",
"arrow-ord",
"arrow-schema",
"arrow-select",
"bytes",
"futures",
"getrandom 0.2.16",
"half",
"jsonb",
"num-traits",
"rand 0.9.2",
]
[[package]]
name = "lance-arrow"
version = "8.0.0"
@@ -3048,41 +3080,6 @@ dependencies = [
"seq-macro",
]
[[package]]
name = "lance-core"
version = "7.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13f84020da5a484e2f07dd1796e09785ed7cd889857ebc4cb77e32ef214ee594"
dependencies = [
"arrow-array",
"arrow-buffer",
"arrow-schema",
"async-trait",
"byteorder",
"bytes",
"deepsize",
"futures",
"itertools 0.13.0",
"lance-arrow 7.0.0",
"libc",
"log",
"moka",
"num_cpus",
"object_store",
"pin-project",
"prost",
"rand 0.9.2",
"roaring",
"serde_json",
"snafu 0.9.1",
"tempfile",
"tokio",
"tokio-stream",
"tokio-util",
"tracing",
"url",
]
[[package]]
name = "lance-core"
version = "8.0.0"
@@ -3100,7 +3097,7 @@ dependencies = [
"datafusion-sql",
"futures",
"itertools 0.13.0",
"lance-arrow 8.0.0",
"lance-arrow",
"lance-derive",
"libc",
"libm",
@@ -3144,8 +3141,8 @@ dependencies = [
"datafusion-physical-expr",
"futures",
"jsonb",
"lance-arrow 8.0.0",
"lance-core 8.0.0",
"lance-arrow",
"lance-core",
"lance-datagen",
"log",
"pin-project",
@@ -3206,9 +3203,9 @@ dependencies = [
"hex",
"hyperloglogplus",
"itertools 0.13.0",
"lance-arrow 8.0.0",
"lance-arrow",
"lance-bitpacking",
"lance-core 8.0.0",
"lance-core",
"log",
"lz4",
"num-traits",
@@ -3240,8 +3237,8 @@ dependencies = [
"bytes",
"datafusion-common",
"futures",
"lance-arrow 8.0.0",
"lance-core 8.0.0",
"lance-arrow",
"lance-core",
"lance-encoding",
"lance-io",
"log",
@@ -3286,9 +3283,9 @@ dependencies = [
"itertools 0.13.0",
"jieba-rs",
"jsonb",
"lance-arrow 8.0.0",
"lance-arrow",
"lance-arrow-stats",
"lance-core 8.0.0",
"lance-core",
"lance-datafusion",
"lance-datagen",
"lance-encoding",
@@ -3343,9 +3340,9 @@ dependencies = [
"futures",
"http",
"io-uring",
"lance-arrow 8.0.0",
"lance-core 8.0.0",
"lance-namespace 8.0.0",
"lance-arrow",
"lance-core",
"lance-namespace",
"log",
"moka",
"object_store",
@@ -3371,26 +3368,12 @@ dependencies = [
"arrow-schema",
"cc",
"half",
"lance-arrow 8.0.0",
"lance-core 8.0.0",
"lance-arrow",
"lance-core",
"num-traits",
"rand 0.9.2",
]
[[package]]
name = "lance-namespace"
version = "7.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "014e8332ca0615506342e0d3af608639864b68396973be14239f09c9f21f1fc2"
dependencies = [
"arrow",
"async-trait",
"bytes",
"lance-core 7.0.0",
"lance-namespace-reqwest-client 0.7.7",
"snafu 0.9.1",
]
[[package]]
name = "lance-namespace"
version = "8.0.0"
@@ -3400,8 +3383,8 @@ dependencies = [
"arrow",
"async-trait",
"bytes",
"lance-core 8.0.0",
"lance-namespace-reqwest-client 0.8.6",
"lance-core",
"lance-namespace-reqwest-client",
"snafu 0.9.1",
]
@@ -3415,42 +3398,33 @@ dependencies = [
"arrow-ipc",
"arrow-schema",
"async-trait",
"axum",
"bytes",
"datafusion-common",
"datafusion-physical-plan",
"futures",
"lance",
"lance-core 8.0.0",
"lance-core",
"lance-index",
"lance-io",
"lance-linalg",
"lance-namespace 8.0.0",
"lance-namespace",
"lance-table",
"log",
"object_store",
"rand 0.9.2",
"reqwest",
"roaring",
"serde",
"serde_json",
"time",
"tokio",
"tower",
"tower-http 0.5.2",
"url",
"uuid",
]
[[package]]
name = "lance-namespace-reqwest-client"
version = "0.7.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6369eee4682fb11edf538388b43c61ce288b8302fe89bb40944d7daa7faaae99"
dependencies = [
"reqwest",
"serde",
"serde_json",
"serde_repr",
"serde_with",
"url",
]
[[package]]
name = "lance-namespace-reqwest-client"
version = "0.8.6"
@@ -3477,7 +3451,7 @@ dependencies = [
"byteorder",
"bytes",
"itertools 0.13.0",
"lance-core 8.0.0",
"lance-core",
"roaring",
"tracing",
]
@@ -3498,8 +3472,8 @@ dependencies = [
"bytes",
"chrono",
"futures",
"lance-arrow 8.0.0",
"lance-core 8.0.0",
"lance-arrow",
"lance-core",
"lance-file",
"lance-io",
"lance-select",
@@ -3530,7 +3504,7 @@ dependencies = [
"arrow-array",
"arrow-schema",
"criterion",
"lance-arrow 8.0.0",
"lance-arrow",
"num-traits",
"pprof",
"rand 0.9.2",
@@ -3581,9 +3555,10 @@ dependencies = [
"datafusion-sql",
"futures",
"half",
"http",
"lance",
"lance-arrow 8.0.0",
"lance-core 8.0.0",
"lance-arrow",
"lance-core",
"lance-datafusion",
"lance-datagen",
"lance-encoding",
@@ -3591,7 +3566,7 @@ dependencies = [
"lance-index",
"lance-io",
"lance-linalg",
"lance-namespace 8.0.0",
"lance-namespace",
"lance-namespace-impls",
"lance-table",
"lance-testing",
@@ -3605,6 +3580,7 @@ dependencies = [
"polars-arrow",
"rand 0.9.2",
"regex",
"reqwest",
"semver",
"serde",
"serde_json",
@@ -3613,6 +3589,7 @@ dependencies = [
"tempfile",
"tokio",
"url",
"urlencoding",
"uuid",
]
@@ -3859,6 +3836,12 @@ dependencies = [
"regex-automata",
]
[[package]]
name = "matchit"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94"
[[package]]
name = "matrixmultiply"
version = "0.3.10"
@@ -5383,7 +5366,7 @@ dependencies = [
"tokio-rustls",
"tokio-util",
"tower",
"tower-http",
"tower-http 0.6.8",
"tower-service",
"url",
"wasm-bindgen",
@@ -5464,7 +5447,7 @@ dependencies = [
"arrow-schema",
"futures",
"futures-util",
"lance-namespace 7.0.0",
"lance-namespace",
"lancedb",
"polars",
"polars-arrow",
@@ -5651,7 +5634,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b3297343eaf830f66ede390ea39da1d462b6b0c1b000f420d0a83f898bbbe6ef"
dependencies = [
"bitflags 2.10.0",
"core-foundation",
"core-foundation 0.10.1",
"core-foundation-sys",
"libc",
"security-framework-sys",
@@ -5722,6 +5705,17 @@ dependencies = [
"zmij",
]
[[package]]
name = "serde_path_to_error"
version = "0.1.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457"
dependencies = [
"itoa",
"serde",
"serde_core",
]
[[package]]
name = "serde_repr"
version = "0.1.20"
@@ -6193,6 +6187,27 @@ dependencies = [
"windows 0.52.0",
]
[[package]]
name = "system-configuration"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"
dependencies = [
"bitflags 2.10.0",
"core-foundation 0.9.4",
"system-configuration-sys",
]
[[package]]
name = "system-configuration-sys"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
dependencies = [
"core-foundation-sys",
"libc",
]
[[package]]
name = "tagptr"
version = "0.2.0"
@@ -6434,6 +6449,24 @@ dependencies = [
"tokio",
"tower-layer",
"tower-service",
"tracing",
]
[[package]]
name = "tower-http"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5"
dependencies = [
"bitflags 2.10.0",
"bytes",
"http",
"http-body",
"http-body-util",
"pin-project-lite",
"tower-layer",
"tower-service",
"tracing",
]
[[package]]
@@ -6477,6 +6510,7 @@ version = "0.1.43"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d15d90a0b5c19378952d479dc858407149d7bb45a14de0142f6c534b16fc647"
dependencies = [
"log",
"pin-project-lite",
"tracing-attributes",
"tracing-core",
@@ -6631,6 +6665,12 @@ dependencies = [
"serde",
]
[[package]]
name = "urlencoding"
version = "2.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da"
[[package]]
name = "utf8-ranges"
version = "1.0.5"
@@ -6989,6 +7029,17 @@ dependencies = [
"windows-link 0.1.3",
]
[[package]]
name = "windows-registry"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"
dependencies = [
"windows-link 0.2.1",
"windows-result 0.4.1",
"windows-strings 0.5.1",
]
[[package]]
name = "windows-result"
version = "0.3.4"
+2 -2
View File
@@ -9,8 +9,8 @@ arrow-json = "58.3.0"
arrow-schema = "58.3.0"
futures = "0.3.31"
futures-util = "0.3.31"
lance-namespace = "7.0.0"
lancedb = { version = "0.31.0", features = ["polars"] }
lance-namespace = "8.0.0"
lancedb = { version = "0.31.0", features = ["polars", "remote"] }
polars = ">=0.37,<0.40.0"
polars-arrow = ">=0.37,<0.40.0"
serde = { version = "1", features = ["derive"] }