Update Rust crate actix-multipart to 0.7.0 #123

Merged
pierre merged 1 commits from renovate/actix-multipart-0.x into master 2024-08-23 07:58:34 +00:00
Owner

This PR contains the following updates:

Package Type Update Change
actix-multipart (source) dependencies minor 0.6.1 -> 0.7.0

Release Notes

actix/actix-web (actix-multipart)

v0.7.2: Actix web 0.7.2

Compare Source

Changes

Added
  • Add implementation of FromRequest<S> for Option<T> and Result<T, Error>

  • Allow to handle application prefix, i.e. allow to handle /app path
    for application with /app prefix.
    Check App::prefix()
    api doc.

  • Add CookieSessionBackend::http_only method to set HttpOnly directive of cookies

Changed
  • Upgrade to cookie 0.11

  • Removed the timestamp from the default logger middleware

Fixed
  • Missing response header "content-encoding" #​421

  • Fix stream draining for http/2 connections #​290

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: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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 has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actix-multipart](https://actix.rs) ([source](https://github.com/actix/actix-web)) | dependencies | minor | `0.6.1` -> `0.7.0` | --- ### Release Notes <details> <summary>actix/actix-web (actix-multipart)</summary> ### [`v0.7.2`](https://github.com/actix/actix-web/releases/tag/v0.7.2): Actix web 0.7.2 [Compare Source](https://github.com/actix/actix-web/compare/v0.7.0...v0.7.2) #### Changes ##### Added - Add implementation of `FromRequest<S>` for `Option<T>` and `Result<T, Error>` - Allow to handle application prefix, i.e. allow to handle `/app` path for application with `/app` prefix. Check [`App::prefix()`](https://actix.rs/actix-web/actix_web/struct.App.html#method.prefix) api doc. - Add `CookieSessionBackend::http_only` method to set `HttpOnly` directive of cookies ##### Changed - Upgrade to cookie 0.11 - Removed the timestamp from the default logger middleware ##### Fixed - Missing response header "content-encoding" [#&#8203;421](https://github.com/actix/actix-web/issues/421) - Fix stream draining for http/2 connections [#&#8203;290](https://github.com/actix/actix-web/issues/290) ### [`v0.7.0`](https://github.com/actix/actix-web/releases/tag/v0.7.0): Actix web 0.7.0 [Compare Source](https://github.com/actix/actix-web/compare/v0.6.2...v0.7.0) #### 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 [#&#8203;371](https://github.com/actix/actix-web/issues/371). [Example](https://github.com/actix/actix-web/blob/master/tests/test_handlers.rs#L94-L134) - `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()` </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjQuMyIsInVwZGF0ZWRJblZlciI6IjM3LjQyNC4zIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
pierre added 1 commit 2024-07-07 00:24:08 +00:00
Update Rust crate actix-multipart to 0.7.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
d66e384137
Author
Owner

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

### Edited/Blocked Notification Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠️ **Warning**: custom changes will be lost.
pierre merged commit a5d81de62b into master 2024-08-23 07:58:34 +00:00
pierre deleted branch renovate/actix-multipart-0.x 2024-08-23 07:58:34 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: pierre/VirtWeb#123
No description provided.