diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-10-22 22:12:56 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-10-22 22:24:41 -0400 |
| commit | 214a9e6c1fd729fc2c49eb2a5d41b5651ff5bc61 (patch) | |
| tree | 2b687e9a3a98645e7d824c19079ecf158bb6c7b7 /Cargo.toml | |
| parent | 056e56ba2da03636eafba384322e386259817d41 (diff) | |
Set `charset` params on returned content types.
This is a somewhat indirect change; it removes `mime_guess` in favour of some very, uh, "bespoke" mime detection logic that hardcodes mime types for the small repertoire of file extensions actually present in the UI. `mime_guess` doesn't provide a way to set params as it exports its own `Mime` struct, which doesn't provide `with_params()`.
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -16,7 +16,7 @@ futures = "0.3.31" headers = "0.4.0" hex-literal = "0.4.1" itertools = "0.13.0" -mime_guess = "2.0.5" +mime = "0.3.17" password-hash = { version = "0.5.0", features = ["std"] } rand = "0.8.5" rand_core = { version = "0.6.4", features = ["getrandom"] } @@ -34,6 +34,7 @@ tokio = { version = "1.40.0", features = ["rt", "macros", "rt-multi-thread"] } tokio-stream = { version = "0.1.16", features = ["sync"] } unicode-casefold = "0.2.0" unicode-normalization = "0.1.24" +unix_path = "1.0.1" uuid = { version = "1.11.0", features = ["v4"] } [dev-dependencies] |
