diff --git a/Cargo.lock b/Cargo.lock index cbfcb8d..a94ff7f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -807,13 +807,15 @@ dependencies = [ [[package]] name = "dataverse" -version = "0.1.0" +version = "0.1.1" dependencies = [ "atty", + "bytes", "clap 4.5.4", "colored", "colored_json", "exitcode", + "futures", "futures-io", "httpmock", "indicatif", @@ -828,6 +830,8 @@ dependencies = [ "serde_yaml", "structopt", "tempfile", + "tokio", + "tokio-util", "toml", "typify", ] @@ -1074,6 +1078,21 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "futures" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + [[package]] name = "futures-channel" version = "0.3.30" @@ -1090,6 +1109,17 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" +[[package]] +name = "futures-executor" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + [[package]] name = "futures-io" version = "0.3.30" @@ -1153,6 +1183,7 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" dependencies = [ + "futures-channel", "futures-core", "futures-io", "futures-macro", @@ -2357,10 +2388,12 @@ dependencies = [ "system-configuration", "tokio", "tokio-native-tls", + "tokio-util", "tower-service", "url", "wasm-bindgen", "wasm-bindgen-futures", + "wasm-streams", "web-sys", "winreg", ] @@ -2976,6 +3009,7 @@ dependencies = [ "libc", "mio", "num_cpus", + "parking_lot", "pin-project-lite", "signal-hook-registry", "socket2 0.5.7", @@ -3384,6 +3418,19 @@ version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" +[[package]] +name = "wasm-streams" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b65dc4c90b63b118468cf747d8bf3566c1913ef60be765b5730ead9e0a3ba129" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + [[package]] name = "web-sys" version = "0.3.69" diff --git a/Cargo.toml b/Cargo.toml index 0c9db56..36a9f09 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dataverse" -version = "0.1.0" +version = "0.1.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -11,7 +11,7 @@ colored = "2.1.0" exitcode = "1.1.2" futures-io = "0.3.30" regress = "0.9.1" -reqwest = { version = "0.12.4", features = ["blocking", "json", "multipart"] } +reqwest = { version = "0.12.4", features = ["blocking", "json", "multipart", "stream"] } serde = { version = "1.0.201", features = ["derive"] } serde_json = "1.0.117" serde_with = "3.8.1" @@ -24,10 +24,14 @@ keyring = "2.3.3" toml = "0.8.13" indicatif = "0.17.8" jwalk = "0.8.1" +tokio = { version = "1.37.0", features = ["full"] } +tokio-util = "0.7.11" +bytes = "1.6.0" +futures = "0.3.30" [[bin]] name = "dvcli" -path = "src/main.rs" +path = "src/bin/cli.rs" [dev-dependencies] httpmock = "0.7.0"