From 4b58f1f734af979d5d5af749bbe92b5755892a31 Mon Sep 17 00:00:00 2001 From: trivernis Date: Tue, 23 Aug 2022 17:43:32 +0200 Subject: [PATCH] Change hydrus wrapper protocol to cbor Signed-off-by: trivernis --- Cargo.lock | 38 ++++++++++++++++++++++++++++++++++++-- Cargo.toml | 2 +- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0e61ff0..b998d07 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -209,6 +209,33 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "ciborium" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0c137568cc60b904a7724001b35ce2630fd00d5d84805fbb608ab89509d788f" +dependencies = [ + "ciborium-io", + "ciborium-ll", + "serde", +] + +[[package]] +name = "ciborium-io" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "346de753af073cc87b52b2083a506b38ac176a44cfb05497b622e27be899b369" + +[[package]] +name = "ciborium-ll" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "213030a2b5a4e0c0892b6652260cf6ccac84827b83a85a534e178e3906c4cf1b" +dependencies = [ + "ciborium-io", + "half", +] + [[package]] name = "clap" version = "3.2.17" @@ -818,6 +845,12 @@ dependencies = [ "tracing", ] +[[package]] +name = "half" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" + [[package]] name = "hashbrown" version = "0.12.3" @@ -915,20 +948,21 @@ version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3ee4a01380e02f9bf73d14e87021c756bc06d9838662a6bc27c786bba3b26c0" dependencies = [ + "base64 0.13.0", "bytes 1.2.1", "chrono", + "ciborium", "lazy_static", "mime", "regex", "reqwest 0.11.11", "serde", - "serde_json", "tracing", ] [[package]] name = "hydrus-utils" -version = "0.4.1" +version = "0.4.2" dependencies = [ "clap", "color-eyre", diff --git a/Cargo.toml b/Cargo.toml index 1919268..89eb61b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ repository = "https://github.com/Trivernis/hydrus-pixiv-tagger" [dependencies] pixiv-rs = "0.1.0" -hydrus-api = "0.9.3" +hydrus-api = { version = "0.9.3", default-features = false, features = ["cbor"] } rustnao = "0.2.1" tempdir = "0.3.7" thiserror = "1.0.32"