diff --git a/Cargo.lock b/Cargo.lock index c1325a6a..9060f12d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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)", diff --git a/Cargo.toml b/Cargo.toml index b1490234..49dfecd1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" } diff --git a/crates/notedeck/Cargo.toml b/crates/notedeck/Cargo.toml index 3408fb32..3ed439b6 100644 --- a/crates/notedeck/Cargo.toml +++ b/crates/notedeck/Cargo.toml @@ -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 }