- Add multipart/form-data file upload support for POST /_miroir/dumps/import - Implement fallback broadcast mode for dump_import config - Update CLI to use multipart upload instead of JSON base64 - Add axum multipart feature to miroir-proxy - Add reqwest multipart feature to miroir-ctl - Update test to reflect broadcast mode acceptance Acceptance criteria met: - Streaming import routes documents per-shard (not 100% to each node) - Large imports complete with batched per-target writes - Metrics track bytes read, documents routed, rate - Fallback broadcast mode works when streaming is disabled Closes: bf-4u2n4 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
26 lines
645 B
TOML
26 lines
645 B
TOML
[package]
|
|
name = "miroir-ctl"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
|
|
[[bin]]
|
|
name = "miroir-ctl"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
base64 = "0.22"
|
|
clap = { version = "4.5", features = ["derive", "env"] }
|
|
reqwest = { version = "0.12", features = ["json", "rustls-tls", "multipart"], default-features = false }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
tokio = { version = "1.42", features = ["full"] }
|
|
miroir-core = { path = "../miroir-core" }
|
|
dirs = "5.0"
|
|
toml = "0.8"
|
|
|
|
[dev-dependencies]
|
|
pretty_assertions = "1"
|
|
tempfile = "3.14"
|
|
serial_test = "3"
|