🏗️ Elegant & Highly Performant Async Gemini Server Framework for the Modern Age
async framework gemini-protocol protocol gemini rust
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(deps): Replace deprecated tree_magic with tree_magic_mini

Fuwn 2643fc06 fd3a2bc2

+3 -3
+2 -2
Cargo.toml
··· 20 20 [features] 21 21 default = ["tokio"] 22 22 logger = ["pretty_env_logger"] 23 - auto-deduce-mime = ["tree_magic"] 23 + auto-deduce-mime = ["tree_magic_mini"] 24 24 response-macros = [] 25 25 tokio = ["dep:tokio", "tokio-openssl"] 26 26 async-std = ["dep:async-std", "async-std-openssl"] ··· 51 51 url = "2.2.2" 52 52 matchit = "0.6.0" 53 53 54 - tree_magic = { version = "0.2.3", optional = true } # MIME 54 + tree_magic_mini = { version = "3.2.2", optional = true } # MIME 55 55 56 56 paste = "1.0.12" # Token Pasting 57 57
+1 -1
src/response.rs
··· 103 103 pub fn binary_success_auto(content: &[u8]) -> Self { 104 104 let mut response = Self::new(22, String::from_utf8_lossy(content)); 105 105 106 - response.with_mime(tree_magic::from_u8(content)); 106 + response.with_mime(tree_magic_mini::from_u8(content)); 107 107 108 108 response 109 109 }