From f01c97b2b3e12c13a85d9593771eb68d9a3bfa01 Mon Sep 17 00:00:00 2001 From: Vika Date: Sun, 17 Apr 2022 07:30:43 +0300 Subject: added mediatype to replace http_types::Mime --- Cargo.lock | 7 +++++++ Cargo.toml | 1 + 2 files changed, 8 insertions(+) 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", @@ -1667,6 +1668,12 @@ version = "0.1.9" 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" 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 -- cgit 1.4.1