Skip to content

Releases: stephank/hyper-staticfile

v0.10.1

01 Jul 12:57
Compare
Choose a tag to compare
  • JavaScript is now served with charset=utf-8 in the Content-Type header.

v0.9.6

01 Jul 12:56
Compare
Choose a tag to compare
  • JavaScript is now served with charset=utf-8 in the Content-Type header.

v0.10.0

18 Nov 16:15
Compare
Choose a tag to compare

These are all the changes since v0.9.5 combined:

  • Breaking change: Upgraded to Hyper 1.0.
  • Breaking change: The top-level resolve* functions are now methods on a new type Resolver.
  • Breaking change: ResolveResult::Found now contains a ResolvedFile, a new struct replacing the old unnamed tuple parameters.
  • Breaking change: The FileBytesStream and FileResponseBuilder exports have moved to a util submodule.
  • A filesystem abstraction was added. Different backing can now be implemented using traits from the vfs submodule.
    • Breaking change: Static, ResolveResult, util::FileBytesStream, util::FileBytesStreamRange, util::FileBytesStreamMultiRange are now generic over traits from the vfs submodule. The type parameters have defaults set for the Tokio implementation, which should make migration effortless in many cases.
    • A MemoryFs was added, which allows serving files efficiently from memory, and preloading an entire directory into memory.
  • Added Static::allowed_encodings, which can be used to serve precompressed .br and .gz files if a client requests them with the Accept-Encoding header.
  • Added Resolver::set_rewrite, which allows rewriting a request before the filesystem is accessed.

v0.10.0-alpha.7

18 Jul 06:30
Compare
Choose a tag to compare
v0.10.0-alpha.7 Pre-release
Pre-release

v0.10.0-alpha.6

30 May 06:35
Compare
Choose a tag to compare
v0.10.0-alpha.6 Pre-release
Pre-release
  • ResolvedFile now has a path field containing the resolved and sanitized path of the file.

v0.9.5

23 Jan 20:04
Compare
Choose a tag to compare
  • Exposes some low-level utilities in a new util submodule.

v0.10.0-alpha.5

29 Dec 19:52
Compare
Choose a tag to compare
v0.10.0-alpha.5 Pre-release
Pre-release
  • Fixes an issue in path sanitization that made open redirects possible. (RUSTSEC-2022-0072)

v0.9.4

23 Dec 09:35
Compare
Choose a tag to compare
  • Fixed an issue with changes in 0.9.3 that broke Windows compatibility.

v0.9.3

23 Dec 09:34
Compare
Choose a tag to compare
  • Fixes an issue in path sanitization that made open redirects possible. (RUSTSEC-2022-0072)

v0.10.0-alpha.4

12 Dec 18:20
Compare
Choose a tag to compare
v0.10.0-alpha.4 Pre-release
Pre-release
  • Breaking change: FileBytesStream and FileResponseBuilder are no longer exported. If you were using these, please let us know via an issue, so we can design an API that fits the changes in structures.
  • Breaking change: The VFS layer now uses a new FileAccess trait instead of AsyncRead, to save on copy operations when serving from MemoryFs. An additional IntoFileAccess trait was also added to provide an intermediate step where buffer allocation can take place. These changes are reflected in type constraints throughout the crate API.
  • Fixed an issue where MemoryFs would not serve the directory index for /.