A cross-platform, high-performance and asynchronous web server for static files-serving. ⚡
APACHE-2.0 License
Bot releases are visible (Hide)
This new v2.30.0
release brings security and dependency updates as well as several bug fixes. Overall performance improvements (directory listing particularly), continuous HTTP load testing benchmarks, project refactorings for increased stability, security and correctness as well as several other improvements.
Fixes
Accept-Encoding
handling does not work correctly if only two compression schemes are available. PR #361 by @palant.Features
Refactorings
basic_auth
module. PR #346 by @palant.maintenance_mode
module. PR #350 by @palant.Accept-Encoding
header. PR #354 by @palant.compression
and compression_static
modules. PR #369 by @palant.maud
templates and serde_json
for directory listings. PR #367 by @palant.fallback
page logic into the corresponding module. PR #372 by @palant.Docs
For more details see v2.30.0 milestone and the full changelog v2.28.0...v2.30.0.
Published by github-actions[bot] 8 months ago
This new v2.28.0
release brings security dependency updates and bug fixes. Cancellation ability to shut down the server gracefully on demand when using the library, Docker examples and Windows Firewall instructions as well as other improvements.
Fixes
TryFrom
imported redundantly in Rust nightly. PR #318 by @yonas.Features
server::Server::run_server_on_rt
and server::Server::run_standalone
functions in Linux/BSDs. PR #319 resolves #315 suggested by @hanaTsuk1.Refactorings
docs.rs
metadata.Docs
Published by github-actions[bot] 8 months ago
This new v2.27.0
release brings a few dependency updates and bug fixes. Two new Cargo feature flags and fixes a regression introduced by the previous release when building SWS from source.
Fixes
Features
all
and experimental
Cargo feature flags. PR #313 also fixes #312 reported by @mattfbacon. See docs.Published by github-actions[bot] 8 months ago
This new v2.26.0
release brings several dependency security updates and bug fixes. Support for Range
requests out of bounds, experimental Tokio Runtime metrics for Prometheus, new Discord server as well as other improvements.
Fixes
Features
--experimental-metrics
option (Unix/Linux). PR #306 by @pl4nty.Refactorings
linux/ppc64le
and linux/s390x
of the Alpine Scratch images. Prefer the Debian image variant for those targets instead. PR #309 resolves #308 reported by @glehmann.Acknowledgments
Thanks to our new donor @c0m4r for supporting the project.
Published by github-actions[bot] 9 months ago
This new v2.25.0 release brings several dependency security updates and bug fixes. An optional Host
URI support for the URL Redirects feature, a bug fix when capturing a Glob pattern using brace expansion for URL Rewrites/Redirects as well as other improvements.
Fixes
Features
Host
URI support for the URL Redirects feature. PR #301.Refactorings
tokio-rustls
0.25. PR #303.devel
workflow. PR #300.devel
workflow.release
workflow.Docs
Published by github-actions[bot] 10 months ago
This new v2.24.2 release brings general dependency security updates, bug fixes and improvements.
Fixes
Refactorings
Published by github-actions[bot] 11 months ago
This new v2.24.1
release brings dependency security updates and bug fixes. In particular, it fixes an issue when executing the previous Windows ARM64 build as well as other minor improvements.
Fixes
Refactorings
Docs
Misc
Published by github-actions[bot] 12 months ago
This new v2.24.0
release brings dependency security updates and bug fixes. It introduces three new targets (PowerPC (PPC64LE), S390x and Windows ARM64). Features like automatic TOML configuration file detection at startup and 404/50x error pages loading at runtime as well as several improvements.
Fixes
cross
does not build when using libc
0.2.149+ on NetBSD.Features
Refactorings
OPTIONS
file requests. PR #278.Docs
Published by github-actions[bot] about 1 year ago
This new v2.23.0
release brings several dependency updates and bug fixes. New features like multiple index files and maintenance mode support, more performance and resource optimizations (~15% less memory usage), a bug fix for the JSON directory listing, documentation for using SWS in WebAssembly and TrueNAS SCALE as well as other improvements.
Fixes
Features
Refactorings
Docs
Acknowledgments
Thanks to our new donor @kirillt for supporting the project.
Published by github-actions[bot] about 1 year ago
This new v2.22.1
release brings several dependency updates and bug fixes. In particular, it fixes an issue when capturing glob groups for URL Rewrites and Redirects.
Fixes
/dir/{*}
correctly. PR #265 resolves #264 reported by @clembu.Published by github-actions[bot] about 1 year ago
This new v2.22.0
release brings several dependency updates and bug fixes. It fixes a performance regression leading to better RAM utilization (~28% less) in comparison to the previous releases with a slight req/sec increase, a new Illumos x86_64 target, as well as improved responsiveness of the directory listing HTML page for mobile and desktop screens.
Fixes
Features
Refactorings
cache-control
.Published by github-actions[bot] about 1 year ago
This new v2.21.1
release brings several security dependency updates. In particular for serde_derive
and rustls-webpki
dependencies.
We encourage users to upgrade as soon as possible.
Fixes
serde_derive
: potential supply chain attack associated with shipping precompiled binaries (silently) serde-rs/serde#2538rustls-webpki
: potential CPU denial of service in certificate path building GHSA-fh2r-99q2-6mmgPublished by github-actions[bot] about 1 year ago
This new v2.21.0
release brings several dependency updates and bug fixes, a new NetBSD x86_64 target, Virtual Hosting support, and other improvements.
Fixes
Features
x86_64-unknown-netbsd
).Docs
Published by github-actions[bot] about 1 year ago
This new v2.20.2
release brings several dependency updates and bug fixes. Also, it fixes a regression in Windows introduced by the previous v2.20.1 release.
Fixes
Refactorings
Published by github-actions[bot] over 1 year ago
This new v2.20.1
release brings several dependency updates and bug fixes. In particular, one fix for a regression introduced by the previous v2.20.0 release as well as other improvements.
Fixes
3.17.4
.Refactorings
Published by github-actions[bot] over 1 year ago
This new v2.20.0
release brings several dependency updates and bug fixes, advanced features like Glob pattern replacements for URL Redirects and Rewrites, a new health-check endpoint, GitHub Container Registry (GHCR) Docker images as well as other improvements.
Fixes
Features
Refactorings
Docs
Acknowledgments
Thanks to our new donor @kirillt for supporting the project.
Published by github-actions[bot] over 1 year ago
This new v2.19.0
release brings several dependency updates/bug fixes (including minor versions), a new Debian 12 "bookworm" Docker image, more Cargo features for controlling the SWS feature set when building, bug fixes for the SWS crate and one regression for the fallback-page
feature, documentation for cross-compiling SWS from source using Zig as a linker as well as other improvements.
Fixes
fallback-page
when passing no CLI or env value. PR #219 fixes #218 reported by @OdyX.Features
directory-listing
Cargo feature. PR #220. See docs.basic-auth
Cargo feature. PR #221. See docs.fallback-page
Cargo feature. PR #222. See docs.Refactorings
docsrs
config flag.Docs
Published by github-actions[bot] over 1 year ago
This new v2.18.0
release brings several dependency updates/bug fixes, SWS bug fixes for the security-headers
and page-fallback
features, the C runtime in Windows x86_64 is now statically linked, the possibility to use CLI boolean flags without explicit values as well as some refactorings and improvements.
Fixes
security-headers
not enabled by default when using http2
via config file. PR #216 fixes #210 resported by @mac-chaffee.X-XSS-Protection
header on security-headers
(also d5279ff). Reported on #213 by @picchietti.page-fallback
is enabled. Reported on #213 by @picchietti.page-fallback
feature is activated:
cors
compression
cache_control_headers
security_headers
custom_headers
Features
static-web-server -d public/ --compression -z
). PR #215 resolves #209 suggested by @mac-chaffee.Refactorings
VCRUNTIME140.dll
.cargo build
across pipelines.Acknowledgments
Thanks to our new donor @picchietti for supporting the project.
Published by github-actions[bot] over 1 year ago
This new v2.17.0
release brings several dependency updates/bug fixes, ECC private keys support for the tls
feature, HTTP to HTTPS redirect support, several Cargo features for controlling the SWS compression
and compression-static
, dependency migrations like the clap
CLI parser and tokio-rustls
as well as various refactorings and improvements.
Fixes
Features
tls
feature. PR #208 resolves #207 suggested by @mac-chaffee. See docs.compression
and compression-static
. PR #201. See docs.Refactorings
clap
CLI parser to v3. PR #211 by @mac-chaffee.tokio-rustls
to 0.24.rustls-pemfile
in Cargo tls
feature.http2
Cargo feature.Docs
Published by github-actions[bot] over 1 year ago
This new v2.16.0
release brings several dependency updates/bug fixes including the Alpine Docker image, a new Android ARM64 target, Zstandard (zstd) auto-compression and pre-compressed files support, static-web-server
available as a crate, as well as other additions and improvements.
Fixes
Features
aarch64-linux-android
). PR #194 resolves #163 suggested by @denisidoro.zstd
) auto-compression and pre-compressed files support. PR #197 resolves #193 suggested by @gaby.Vary
header for Accept-Encoding
when --compression
or --compression-static
is enabled.static-web-server
crate. PR #189 by @da2ce7.Refactorings
as_ref()
for several paths on static file module..html
auto-suffix files metadata function.Docs
v1.x
end of life (2023-01-06). See static-web-server.net.