use mime_guess

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-02-20 14:10:39 -05:00
parent 4cd80c10b1
commit 5791b0c5b1
3 changed files with 14 additions and 1 deletions

13
Cargo.lock generated
View File

@@ -2371,7 +2371,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
dependencies = [
"cfg-if",
"windows-targets 0.48.5",
"windows-targets 0.52.6",
]
[[package]]
@@ -2507,6 +2507,16 @@ version = "0.3.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
[[package]]
name = "mime_guess"
version = "2.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e"
dependencies = [
"mime",
"unicase",
]
[[package]]
name = "mime_guess2"
version = "2.0.5"
@@ -2742,6 +2752,7 @@ dependencies = [
"enostr",
"hex",
"image",
"mime_guess",
"nostrdb",
"poll-promise",
"puffin 0.19.1 (git+https://github.com/jb55/puffin?rev=70ff86d5503815219b01a009afd3669b7903a057)",

View File

@@ -57,6 +57,7 @@ uuid = { version = "1.10.0", features = ["v4"] }
security-framework = "2.11.0"
sha2 = "0.10.8"
bincode = "1.3.3"
mime_guess = "2.0.5"
[patch.crates-io]
egui = { git = "https://github.com/damus-io/egui", branch = "update_layouter_0.29.1" }

View File

@@ -27,6 +27,7 @@ puffin_egui = { workspace = true, optional = true }
sha2 = { workspace = true }
bincode = { workspace = true }
ehttp = {workspace = true }
mime_guess = { workspace = true }
[dev-dependencies]
tempfile = { workspace = true }