aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-03-07Modernize actix-web middleware usageSven-Hendrik Haase1-1/+2
2025-03-07Upgrade to Rust 2024 editionSven-Hendrik Haase1-6/+9
2025-03-07Add healthcheck route at /__miniserve_internal/healthcheckSven-Hendrik Haase1-0/+5
Fixes #1435
2025-02-05add read-only webdav supportLukas Stabe1-2/+49
2024-09-12Fix lintsSven-Hendrik Haase1-2/+1
2024-06-09Bump rustls to v0.23Sven-Hendrik Haase1-1/+1
2024-01-30Revert "completely disable the listing renderer when indexing is disabled"Carson McManus1-15/+3
This reverts commit 7b5b1a0e7fec2c0577eb0dc2a93e9fde48228a67.
2024-01-30completely disable the listing renderer when indexing is disabledCarson McManus1-3/+15
2024-01-30Rename `StartError` -> `StartupError`cyqsimon1-10/+11
2024-01-29Refactor errorscyqsimon1-15/+15
- Split `ContexualError` into `StartError` & `RuntimeError` - Made sure every `RuntimeError` variant has an accurate status code
2024-01-16Add option for compress responsezuisong1-1/+4
2024-01-14Compress response using `actix_web::middleware::compress`Dean Li1-0/+1
2023-09-05rename `file_upload` to `file_op`cyqsimon1-2/+2
- This is in preparation for adding deletion code
2023-08-07Adjust from feedbackNorberto Lopes1-1/+6
- remove info logging - add comment to clarify logic
2023-08-06Add pretty urlsNorberto Lopes1-1/+23
This adds a new flag namely `--pretty-urls` that when enabled will serve the equivalent `.html` if it exists. Very much the same approach that [`netlify` uses](https://docs.netlify.com/site-deploys/post-processing/). It can be quite useful when having hrefs like `/about` serve `/about.html`.
2023-07-21use grass include macro; remove build.rsBao Trinh1-1/+1
2023-07-12Separate color schemes into separate filesBao Trinh1-3/+14
2023-07-10Create shared file utiity modulecyqsimon1-0/+1
2023-07-05Fix ANSI color codes are printed when not a ttySven-Hendrik Haase1-12/+14
Fixes #1095.
2023-07-02Remove atty depSven-Hendrik Haase1-4/+4
We can now use the stabilized IsTerminal trait.
2023-04-20Switch from deprecated get_if_addrs to if-addrsSven-Hendrik Haase1-1/+1
Fixes #1079.
2022-12-30Run cargo fmtSven-Hendrik Haase1-3/+2
2022-12-19Fix lintsSven-Hendrik Haase1-6/+6
2022-10-12Upgrade clap to v4Sven-Hendrik Haase1-1/+1
2022-09-20Tidy up some importsSven-Hendrik Haase1-5/+4
2022-09-14Fully qualify clap_complete::generateSven-Hendrik Haase1-2/+1
2022-09-14Fix typosKian-Meng Ang1-1/+1
Found via `codespell -L crate`.
2022-09-01Switch to `fast_qr` cratecyqsimon1-29/+4
2022-08-22Switch to `qrcode` libcyqsimon1-27/+25
2022-07-22Remove trailing space to appease `cargo fmt`cyqsimon1-1/+1
2022-07-22Apply suggestions from code reviewcyqsimon1-1/+4
Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com>
2022-07-20Minor refactor on `run`cyqsimon1-36/+16
2022-07-20refactor `configure_app`cyqsimon1-44/+24
2022-05-18Fix security issue with --no-symlinksSven-Hendrik Haase1-0/+19
Even with --no-symlinks specified, if a direct path to a symlink had been entered, it would be resolved. This fixes that behavior and improves tests to ensure this behavior.
2022-02-20Add man page support using --print-manpage (fixes #730)Sven-Hendrik Haase1-0/+7
2022-02-16Bump depsSven-Hendrik Haase1-1/+1
2022-02-06Fix route_prefix for css and faviconAli MJ Al-Nasrawy1-5/+2
2022-02-05update to actix-web v4.0-rc.2Ali MJ Al-Nasrawy1-4/+4
2022-01-03Apply requested changesjikstra1-7/+1
2022-01-03Upgrade clapSven-Hendrik Haase1-1/+1
2021-12-29Implement --route-prefix to set specific route prefixjikstra1-4/+7
2021-12-28Bump actix-web to v4.0-beta.15jikstra1-4/+10
Co-authored-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
2021-12-28Bump actix-web to v4.0-beta.9Ali MJ Al-Nasrawy1-4/+0
2021-12-10Fixes type in main.rsSam Schlinkert1-1/+1
"Availabe" -> "Available"
2021-10-25Refactor SPA-mode to make it more ergonomicSven-Hendrik Haase1-14/+22
2021-10-18Update clapSven-Hendrik Haase1-16/+5
2021-10-18Use Path instead of PathBuf for parameterBilly Bradley1-3/+4
2021-10-14Fix formattingBilly Bradley1-1/+1
2021-10-13revert unnecessary changesAli MJ Al-Nasrawy1-5/+5
2021-10-10Use NamedFile as default handler to simplify --spa-index option implementationBilly Bradley1-17/+5