---
title: "actix-web 4.18.2 Breaking Changes on crates.io | Since.dev"
description: "What each actix-web release removed, renamed or changed: 154 breaking changes in 4 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/actix-web
last_updated: 2026-12-04
---

# actix-web breaking changes

actix-web 4.18.2 (November 6, 2026) is its newest release with breaking changes, 4 of them. The first: Method mismatches now return 405 with Allow header in actix-web 4.18.2. Every breaking API change we have recorded in actix-web on crates.io: 154 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.21.0`, released December 4, 2026. [Source repository](https://github.com/actix/actix-web)

Its 4.18.0 release requires [Rust 1.89](https://since.dev/calendar/rust/1.89.md) or later. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [4.0.0](#v-4-0-0) to [4.18.2](#v-4-18-2): 6 breaking changes in 3 versions.

## actix-web 4.18.2 breaking changes

actix-web 4.18.2, released November 6, 2026: 4 breaking changes.

- **Behavior changed**  

When method guards reject a matching resource, the built-in app default now returns 405 with an Allow header instead of the previous response. Code checking for the old status code must be updated. [github.com](https://github.com/actix/actix-web/releases/tag/actix-web-v4.18.2)
- **Behavior changed**  

Form, JSON, bytes and string extractors now apply the configured size limits to decompressed request bodies. Large decompressed payloads that were previously accepted may now be rejected. [github.com](https://github.com/actix/actix-web/releases/tag/actix-web-v4.18.2)
- **Behavior changed** `ContentDisposition.attachment`  

ContentDisposition::attachment() now adds a UTF-8 encoded filename\* parameter for non-ASCII filenames, so the generated header differs for those names. [github.com](https://github.com/actix/actix-web/releases/tag/actix-web-v4.18.2)
- **Default changed**  

The default limit for form payloads is now 32 KiB. Code that relied on the previous smaller default may need to set the limit explicitly. [github.com](https://github.com/actix/actix-web/releases/tag/actix-web-v4.18.2)

## actix-web 4.18.0 breaking changes

actix-web 4.18.0, released October 23, 2026: 1 breaking change.

- **Removed**  

Older Rust toolchains are no longer supported, so code must be built with Rust 1.89 or later. [github.com](https://github.com/actix/actix-web/releases/tag/actix-web-v4.18.0)

## actix-web 4.16.0 breaking changes

actix-web 4.16.0, released October 12, 2026: 1 breaking change.

- **Configuration changed**  

The TLS features no longer turn on the http2 crate feature. If your code depends on HTTP/2 being enabled through a TLS feature, enable the http2 feature explicitly. [github.com](https://github.com/actix/actix-web/releases/tag/actix-web-v4.16.0)

## actix-web 4.0.0 breaking changes

actix-web 4.0.0, released February 25, 2022: 148 breaking changes.

- **Removed** `actix_web::*`  

actix_web::\* was removed in actix-web 4.0.0 [crates.io](https://crates.io/crates/actix-web/4.0.0)
- **Removed** `actix_web::client`  

actix_web::client was removed in actix-web 4.0.0 [crates.io](https://crates.io/crates/actix-web/4.0.0)
- **Removed** `actix_web::dev::AppService::set_service_data`  

actix_web::dev::AppService::set_service_data was removed in actix-web 4.0.0 [crates.io](https://crates.io/crates/actix-web/4.0.0)
- **Removed** `actix_web::dev::Body`  

actix_web::dev::Body was removed in actix-web 4.0.0 [crates.io](https://crates.io/crates/actix-web/4.0.0)
- **Removed** `actix_web::dev::BodyEncoding`  

actix_web::dev::BodyEncoding was removed in actix-web 4.0.0 [crates.io](https://crates.io/crates/actix-web/4.0.0)
- **Removed** `actix_web::dev::BodySize`  

actix_web::dev::BodySize was removed in actix-web 4.0.0 [crates.io](https://crates.io/crates/actix-web/4.0.0)
- **Removed** `actix_web::dev::ConnectionInfo::get`  

actix_web::dev::ConnectionInfo::get was removed in actix-web 4.0.0 [crates.io](https://crates.io/crates/actix-web/4.0.0)
- **Removed** `actix_web::dev::HttpResponseBuilder`  

actix_web::dev::HttpResponseBuilder was removed in actix-web 4.0.0 [crates.io](https://crates.io/crates/actix-web/4.0.0)
- **Removed** `actix_web::dev::MessageBody`  

actix_web::dev::MessageBody was removed in actix-web 4.0.0 [crates.io](https://crates.io/crates/actix-web/4.0.0)
- **Removed** `actix_web::dev::PayloadStream`  

actix_web::dev::PayloadStream was removed in actix-web 4.0.0 [crates.io](https://crates.io/crates/actix-web/4.0.0)

And 138 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [actix-http](https://since.dev/packages/crates/actix-http.md)
- [actix-session](https://since.dev/packages/crates/actix-session.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
