about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-02-21 22:38:07 +0300
committerVika <vika@fireburn.ru>2022-02-21 22:38:07 +0300
commit987ef5045023bcf7b6b843684f62db55f7c142d2 (patch)
tree16dd26b90fb5598073ec118086200eecf5a20654
parent093780f094b56745ff3ef2c70ae64b2fc12b8c7a (diff)
downloadkittybox-987ef5045023bcf7b6b843684f62db55f7c142d2.tar.zst
add compat between http_types and http
-rw-r--r--Cargo.lock1
-rw-r--r--Cargo.toml6
2 files changed, 5 insertions, 2 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 6694e2f..6a6b68f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1224,6 +1224,7 @@ dependencies = [
  "base64",
  "cookie",
  "futures-lite",
+ "http",
  "infer",
  "pin-project-lite",
  "rand 0.7.3",
diff --git a/Cargo.toml b/Cargo.toml
index 88eb6d6..d4cfb72 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -42,7 +42,6 @@ env_logger = "^0.8.3"        # A logging implementation for `log` which is confi
 fd-lock = "^3.0.0"           # Advisory reader-writer locks for files
 futures = "^0.3.14"          # An implementation of futures and streams
 futures-util = "^0.3.14"     # Common utilities and extension traits for the futures-rs library
-http-types = "^2.11.0"       # Common types for HTTP operations
 lazy_static = "^1.4.0"       # A macro for declaring lazily evaluated statics in Rust
 log = "^0.4.14"              # A lightweight logging facade for Rust
 markdown = "^0.3.0"          # Native Rust library for parsing Markdown and (outputting HTML)
@@ -80,10 +79,13 @@ features = ["serde"]
 version = "^0.3.2"
 default-features = false
 features = ["multipart", "compression"]
+[dependencies.http-types]    # Common types for HTTP operations
+version = "^2.11.0"
+features = ["http"]
 [dependencies.hyper]
 version = "^0.14.17"
 features = ["client", "stream", "runtime"]
 [dependencies.hyper-rustls]
 version = "^0.23.0"
 default-features = false
-features = ["webpki-tokio", "http1", "http2", "tls12", "logging"]
\ No newline at end of file
+features = ["webpki-tokio", "http1", "http2", "tls12", "logging"]