about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-04-17 07:30:43 +0300
committerVika <vika@fireburn.ru>2022-04-17 07:30:43 +0300
commitf01c97b2b3e12c13a85d9593771eb68d9a3bfa01 (patch)
tree5306fc7adea7f30f68ffead39d361ea70ec3c1f8
parent761944fd17156a23f14de8f840ecdb1c99fbbab4 (diff)
downloadkittybox-f01c97b2b3e12c13a85d9593771eb68d9a3bfa01.tar.zst
added mediatype to replace http_types::Mime
-rw-r--r--Cargo.lock7
-rw-r--r--Cargo.toml1
2 files changed, 8 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index eba60ed..c409a56 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1454,6 +1454,7 @@ dependencies = [
  "log 0.4.14",
  "markdown",
  "markup",
+ "mediatype",
  "mockito",
  "newbase60",
  "paste",
@@ -1668,6 +1669,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
 
 [[package]]
+name = "mediatype"
+version = "0.19.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6a68e02b77b7257bf2dea3f4296de69743ed611127f2ffe902a2edd904300b52"
+
+[[package]]
 name = "memchr"
 version = "0.1.11"
 source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/Cargo.toml b/Cargo.toml
index 8ccd0f3..97230a2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -49,6 +49,7 @@ listenfd = "^0.5.0"          # A simple library to work with listenfds passed fr
 log = "^0.4.14"              # A lightweight logging facade for Rust
 markdown = "^0.3.0"          # Native Rust library for parsing Markdown and (outputting HTML)
 markup = "^0.12.0"           # HTML templating engine... ok also very funny about markdown and markup... i just realized the pun...
+mediatype = "^0.19.1"        # MIME Media-type parsing
 newbase60 = "^0.1.3"         # A library that implements Tantek Çelik's New Base 60
 rand = "^0.8.4"              # Random number generators.
 retainer = "^0.2.2"          # Minimal async cache in Rust with support for key expirations