Skip to content

Commit c4a70cc

Browse files
authored
Merge pull request #134 from hotdata-dev/feat/sdk-refactor
feat: refactor CLI onto the hotdata Rust SDK
2 parents 2494f84 + 1f25031 commit c4a70cc

25 files changed

Lines changed: 3414 additions & 1918 deletions

Cargo.lock

Lines changed: 673 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,23 @@ name = "hotdata"
1212
path = "src/main.rs"
1313

1414
[dependencies]
15+
# Hotdata Rust SDK. The CLI's sync wrapper (src/sdk.rs) drives this async SDK
16+
# behind a shared multi-thread tokio runtime. Pinned to the rev that adds the
17+
# CLI-consumption surface (attribution client_id, async submit_query, streaming
18+
# upload_stream) — merged via hotdata-dev/sdk-rust#32.
19+
hotdata = { git = "https://github.com/hotdata-dev/sdk-rust", rev = "8d4018fb899ba52228db44eaffa6caa0eb5b603f", features = ["arrow"] }
20+
# Shared multi-thread runtime for the sync wrapper; block_on is called
21+
# concurrently from rayon worker threads (see src/indexes.rs).
22+
tokio = { version = "1", features = ["rt-multi-thread"] }
23+
# CliTokenProvider implements the SDK's #[async_trait] BearerTokenProvider.
24+
async-trait = "0.1"
1525
anstyle = "1.0.13"
1626
clap = { version = "4", features = ["derive"] }
1727
directories = "6"
18-
reqwest = { version = "0.12", features = ["blocking", "json"] }
28+
# Matches the SDK's reqwest 0.13 so the sdk seam can name the `reqwest::Client`
29+
# type backing `Configuration.client`; `blocking` serves the CLI's own
30+
# synchronous paths (PKCE/token mints in jwt.rs + the streaming /files upload).
31+
reqwest = { version = "0.13", features = ["blocking", "json"] }
1932
rayon = "1.10"
2033
serde = { version = "1", features = ["derive"] }
2134
serde_json = "1"

0 commit comments

Comments
 (0)