Skip to content

build(deps): update rust crate actix-files to 0.7.0 - #515

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

build(deps): update rust crate actix-files to 0.7.0#515
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/actix-files-0.x

Conversation

@renovate

@renovate renovate Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
actix-files (source) workspace.dependencies minor 0.6.60.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()


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • 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