Skip to content

Update Rust crate actix-files to 0.7.0 - #24

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/actix-files-0.x
Open

Update Rust crate actix-files to 0.7.0#24
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/actix-files-0.x

Conversation

@renovate

@renovate renovate Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
actix-files (source) dependencies minor 0.6.20.7.0

Release Notes

actix/actix-web (actix-files)

v0.7.0: Actix web 0.7.0

Compare Source

Changes

Added
  • Add fs::StaticFileConfig to provide means of customizing static
    file services. It allows to map mime to Content-Disposition,
    specify whether to use ETag and Last-Modified and allowed methods.

  • Add .has_prefixed_resource() method to router::ResourceInfo
    for route matching with prefix awareness

  • Add HttpMessage::readlines() for reading line by line.

  • Add ClientRequestBuilder::form() for sending application/x-www-form-urlencoded requests.

  • Add method to configure custom error handler to Form extractor.

  • Add methods to HttpResponse to retrieve, add, and delete cookies

  • Add .set_content_type() and .set_content_disposition() methods
    to fs::NamedFile to allow overriding the values inferred by default

  • Add fs::file_extension_to_mime() helper function to get the MIME
    type for a file extension

  • Add .content_disposition() method to parse Content-Disposition of
    multipart fields

  • Re-export actix::prelude::* as actix_web::actix module.

  • HttpRequest::url_for_static() for a named route with no variables segments

  • Propagation of the application's default resource to scopes that haven't set a default resource.

Changed
  • Min rustc version is 1.26

  • Use tokio instead of tokio-core

  • CookieSessionBackend sets percent encoded cookies for outgoing HTTP messages.

  • Became possible to use enums with query extractor.
    Issue #​371.
    Example

  • HttpResponse::into_builder() now moves cookies into the builder
    instead of dropping them

  • For safety and performance reasons Handler::handle() uses &self instead of &mut self

  • Handler::handle() uses &HttpRequest instead of HttpRequest

  • Added header User-Agent: Actix-web/<current_version> to default headers when building a request

  • port Extensions type from http create, we don't need Send + Sync

  • HttpRequest::query() returns Ref<HashMap<String, String>>

  • HttpRequest::cookies() returns Ref<Vec<Cookie<'static>>>

  • StaticFiles::new() returns Result<StaticFiles<S>, Error> instead of StaticFiles<S>

  • StaticFiles uses the default handler if the file does not exist

Removed
  • Remove Route::with2() and Route::with3() use tuple of extractors instead.

  • Remove HttpMessage::range()

v0.6.10: Actix web 0.6.10

Compare Source

Changes

Added
  • Allow to use path without traling slashes for scope registration #​241

  • Allow to set encoding for exact NamedFile #​239

Fixed
  • TestServer::post() actually sends GET request #​240

v0.6.9: Actix web 0.6.9

Compare Source

Changes

  • Drop connection if request's payload is not fully consumed #​236

  • Fix streaming response with body compression

v0.6.8: Actix web 0.6.8

Compare Source

Changes

  • Fix scope resource path extractor #​234

  • Re-use tcp listener on pause/resume

v0.6.7: Actix web 0.6.7

Compare Source

Changes

  • Fix compilation with --no-default-features

v0.6.6: Actix web 0.6.6

Compare Source

Changes

  • Panic during middleware execution #​226

  • Add support for listen_tls/listen_ssl #​224

  • Ranges header support for NamedFile #​60

  • Implement extractor for Session

v0.6.5: Actix web 0.6.5

Compare Source

Changes

  • Fix error handling during request decoding #​222

v0.6.4: Actix web 0.6.4

Compare Source

Changes

  • Fix segfault in ServerSettings::get_response_builder()

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants