Yuki Okushi
da2d74ec28
perf(files): drop some needless allocations ( #4042 )
2026-04-26 19:14:54 +00:00
Yuki Okushi
5bc18551cd
chore(files): upgrade v_htmlescape to 0.17 ( #4048 )
2026-04-26 17:40:14 +00:00
Yuki Okushi
1aa74f4234
feat(file): add support for extracting multi-component path params ( #4039 )
2026-04-25 14:43:27 +09:00
cui
36dadc5351
typo: bytes=bytes=0-9 to bytes=0-9 ( #3934 )
...
* typo: bytes=bytes=0-9 to bytes=0-9
* fix: ci
* fix: ci
2026-02-16 11:54:34 +00:00
Yuki Okushi
6d81907540
fix(files,http,web): do not compress 206 at all ( #3923 )
2026-02-15 08:56:43 +09:00
Yuki Okushi
b1fb44722a
docs(files): improve `index_file` docs ( #3924 )
2026-02-14 20:52:04 +09:00
Yuki Okushi
f31f9bc92c
fix(files): do not panic on pre-EPOCH files ( #3922 )
2026-02-14 10:25:48 +09:00
Yuki Okushi
5548fadc7d
fix(files): handle `bytes=0-` nicely ( #3914 )
2026-02-09 21:40:29 +00:00
Anton Lazarev
9856a3b056
Support serving pre-compressed files for static sites ( #2615 )
...
* support serving pre-compressed files for static sites
* Update CHANGES.md
* fix behavior change for audio file
* follow-up some inconsistency
* test(files): make encoding test independent of fixture line endings
---------
Co-authored-by: Rob Ede <robjtede@icloud.com>
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2026-02-08 02:15:38 +00:00
Yuki Okushi
06a354fe52
Merge commit from fork
2026-02-06 21:05:15 +09:00
Yuki Okushi
d9b96e635d
Merge commit from fork
2026-02-06 21:04:03 +09:00
Andrew Scott
5ee6b59b1e
feat: expose PathBufWrap utility for public access ( #3694 )
...
* feat: expose PathBufWrap utility for public access
* fix: rename to `parse_unprocessed_req`
---------
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2026-02-02 12:15:47 +00:00
Yuki Okushi
0eef0601a1
docs(files): refine docs of `read_mode_threshold` ( #3897 )
2026-02-01 22:10:47 +09:00
Rob Ede
917b5f2048
chore: address clippy lints
2025-12-11 07:26:07 +00:00
Yuki Okushi
429ff82a4b
fix: rename doc_auto_cfg feature ( #3787 )
2025-09-29 10:42:56 +00:00
francesco-gaglione
6e6c2491c6
Add support for permanent redirects in `Files` service ( #3767 )
...
* Add support for permanent redirects in `Files` service
* Rename `with_permanent_redirect_directory` to `with_permanent_redirect` in `Files` service
* Tweak doc comment
---------
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2025-09-15 08:33:33 +00:00
Rob Ede
4966a54e05
refactor(files): rename read_mode_threshold fn
2025-08-29 22:30:47 +01:00
Andrew Scott
00b0f8f700
feat(actix-files): opt-in filesize threshold for faster synchronous reads ( #3706 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2025-08-29 21:52:34 +01:00
dependabot[bot]
9656383646
build(deps): update derive_more requirement from 1 to 2 ( #3571 )
...
* build(deps): update derive_more requirement from 1 to 2
Updates the requirements on [derive_more](https://github.com/JelteF/derive_more ) to permit the latest version.
- [Release notes](https://github.com/JelteF/derive_more/releases )
- [Changelog](https://github.com/JelteF/derive_more/blob/master/CHANGELOG.md )
- [Commits](https://github.com/JelteF/derive_more/compare/v1.0.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: derive_more
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* refactor: simplify derive_more calls
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2025-02-10 01:27:56 +00:00
John Vandenberg
d6bdfac1b9
build(deps): update derive_more to v1.0 ( #3453 )
...
* build(deps): update derive_more to v1.0
* refactor: use from derive module
---------
Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-08-18 14:17:03 +00:00
Rob Ede
538c1bea34
chore: disallow e bindings
2024-08-10 05:15:49 +01:00
Rob Ede
e0e4d1e661
chore: move deny lints to manifests
2024-07-07 03:54:00 +01:00
Rob Ede
763c58445a
test: fix tests based on mime-guess inference
...
relates to https://github.com/abonander/mime_guess/pull/86
2024-06-30 20:28:11 +01:00
dependabot[bot]
8c31d137aa
build(deps): bump taiki-e/install-action from 2.26.18 to 2.27.2 ( #3294 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-02-19 12:31:10 +00:00
Rob Ede
2125aca2c5
Rustls v0.22 support ( #3275 )
2024-02-03 23:55:01 +00:00
Dialga
fcfc727295
actix-files: fix handling linebreaks in filenames ( #3237 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-01-10 03:56:15 +00:00
Rob Ede
46dde69d50
chore(actix-files): prepare release 0.6.4
2024-01-06 10:19:15 +00:00
Sven-Hendrik Haase
febba786fa
actix-files: Properly handle newlines in file names ( #3235 )
2024-01-06 10:11:40 +00:00
Rob Ede
5e5e5d8315
chore: remove allow(uninlined_format_args)
2023-12-16 10:33:00 +00:00
Rob Ede
32ddf972c6
docs: add guarded-listings example
2023-10-30 00:03:22 +00:00
Rob Ede
905c30af86
Actix Web Rustls v0.21 support ( #3116 )
2023-08-29 01:11:11 +01:00
Rob Ede
79a38e0628
apply standard formatting
2023-07-17 02:38:12 +01:00
Raminder Singh
4eeb01415c
Fix failing test on Windows ( #3037 )
2023-07-02 00:36:06 +00:00
Rob Ede
241da6e081
update MSRV to 1.65 ( #3059 )
2023-07-02 01:09:15 +01:00
Rob Ede
6fdda45ca3
update bitflags to v2
2023-05-06 11:38:51 +01:00
Rob Ede
442fa279da
uncomment error variant
2023-03-13 14:30:21 +00:00
Rob Ede
bfdc29ebb8
normalize actix-files error messages
2023-03-13 14:22:50 +00:00
Rob Ede
67efa4a4db
migrate to doc_auto_cfg
2023-02-26 21:55:25 +00:00
Lioness100
42193bee29
fix typos ( #2982 )
2023-02-20 08:11:16 +00:00
Rob Ede
b933ed4456
add tests for files_listing_renderer
2023-02-03 21:04:07 -05:00
Rob Ede
6f0a6bd1bb
address clippy lints
...
For intrepid commit message readers:
The choice to add allows for the inlined format args lint instead of actually
inlining them is not very clear because our actual real world MSRV is not clear.
We currently claim 1.60 is our MSRV but this is mainly due to dependencies. I'm
fairly sure that we could support < 1.58 if those deps are outdated in a users
lockfile. We'll remove these allows again at some point soon.
2023-01-01 20:56:34 +00:00
kkocdko
73b94e902d
fix xhtml pages' `content-disposition` ( #2903 )
...
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
2022-10-09 12:44:10 +01:00
Rob Ede
cc7145d41d
rust 1.64 clippy run ( #2891 )
2022-09-25 20:54:17 +01:00
Juan Aguilar
c993055fc8
replace askama_escape in favor of v_htmlescape ( #2824 )
2022-08-30 09:34:46 +01:00
Rob Ede
20f4cfe6b5
fix partial ranges for video content ( #2817 )
...
fixes #2815
2022-07-23 16:27:01 +01:00
Rob Ede
6408291ab0
appease clippy by deriving Eq on a bunch of items ( #2818 )
2022-07-23 16:26:48 +01:00
Rob Ede
a03a2a0076
deprecate `NamedFile::set_status_code`
2022-03-10 02:54:06 +00:00
Rob Ede
745e738955
fix negative impl assertion on 1.60+
...
see https://github.com/rust-lang/rust/issues/94791
2022-03-10 02:36:57 +00:00
Rob Ede
1fd90f0b10
Implement getters for named file fields ( #2689 )
...
Co-authored-by: Janis Goldschmidt <github@aberrat.io>
2022-03-10 01:29:26 +00:00
Clément Nerma
955c3ac0c4
Add support for audio files streaming ( #2645 )
2022-03-03 00:29:59 +00:00