Commit Graph

5007 Commits

Author SHA1 Message Date
dependabot[bot] 3089b887be
build(deps): bump actions-rust-lang/setup-rust-toolchain from 1.15.2 to 1.15.3 (#3957)
build(deps): bump actions-rust-lang/setup-rust-toolchain

Bumps [actions-rust-lang/setup-rust-toolchain](https://github.com/actions-rust-lang/setup-rust-toolchain) from 1.15.2 to 1.15.3.
- [Release notes](https://github.com/actions-rust-lang/setup-rust-toolchain/releases)
- [Changelog](https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/CHANGELOG.md)
- [Commits](1780873c7b...a0b538fa0b)

---
updated-dependencies:
- dependency-name: actions-rust-lang/setup-rust-toolchain
  dependency-version: 1.15.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-02 14:15:48 +00:00
dependabot[bot] 116f5de509
build(deps): bump taiki-e/install-action from 2.68.7 to 2.68.15 (#3956)
Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.68.7 to 2.68.15.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](f92912fad1...68675c5a5f)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.68.15
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-02 02:11:06 +00:00
dependabot[bot] df54cd4466
build(deps): bump pin-project-lite from 0.2.16 to 0.2.17 (#3958)
Bumps [pin-project-lite](https://github.com/taiki-e/pin-project-lite) from 0.2.16 to 0.2.17.
- [Release notes](https://github.com/taiki-e/pin-project-lite/releases)
- [Changelog](https://github.com/taiki-e/pin-project-lite/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/pin-project-lite/compare/v0.2.16...v0.2.17)

---
updated-dependencies:
- dependency-name: pin-project-lite
  dependency-version: 0.2.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-02 02:10:15 +00:00
Ali Mirghasemi e2eb53bcce
awc: add camel_case headers api (#3953)
* Add camel-case functions for websocket request

* Add camel-case support for connection upgrade

* Fix camel case in encode_headers

* tweak

---------

Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2026-02-26 22:59:41 +00:00
Yuki Okushi 975b6efe89
fix(web): fix `match_*` incorrectness (#3946) 2026-02-26 20:06:47 +09:00
dependabot[bot] 96a4964c1b
build(deps): bump bitflags from 2.10.0 to 2.11.0 (#3950)
Bumps [bitflags](https://github.com/bitflags/bitflags) from 2.10.0 to 2.11.0.
- [Release notes](https://github.com/bitflags/bitflags/releases)
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bitflags/bitflags/compare/2.10.0...2.11.0)

---
updated-dependencies:
- dependency-name: bitflags
  dependency-version: 2.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-23 00:47:14 +00:00
dependabot[bot] 40cd68341d
build(deps): bump futures-test from 0.3.31 to 0.3.32 (#3949)
Bumps [futures-test](https://github.com/rust-lang/futures-rs) from 0.3.31 to 0.3.32.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.31...0.3.32)

---
updated-dependencies:
- dependency-name: futures-test
  dependency-version: 0.3.32
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-23 00:41:45 +00:00
dependabot[bot] 2dcb8d9c32
build(deps): bump taiki-e/install-action from 2.67.30 to 2.68.7 (#3948)
Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.67.30 to 2.68.7.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](288875dd3d...f92912fad1)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.68.7
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-23 00:41:12 +00:00
Yuki Okushi 15cfc03878
test(http): serial experiments to eliminate Windows test flakiness (#3945) 2026-02-22 10:28:10 +09:00
WaterWhisperer d3bf929040
fix: panic when `.to()/.service()` called after `.wrap()` on Route (#3944)
* fix: panic when `.to()/.service()` called after `.wrap()` on Route

* tweak

---------

Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2026-02-21 09:21:43 +00:00
Yuki Okushi 2bdcbf05a4
chore: drop actors from workspace (#3943) 2026-02-18 22:09:29 +00:00
Yuki Okushi 0a27aaf623
chore(awc): release v3.8.2 (#3942) 2026-02-18 20:09:09 +09:00
Yuki Okushi 8b7270a09f
chore(web): release v4.13.0 (#3941) 2026-02-18 10:32:25 +00:00
Yuki Okushi 9cbde13010
chore(gha): reduce timeout to 30min. (#3940) 2026-02-18 19:12:10 +09:00
Yuki Okushi a7a26f1ee0
chore(http): release v3.12.0 (#3939) 2026-02-18 19:10:18 +09:00
Yuki Okushi 6e4e040ee0
chore(router): release v0.5.4 (#3938) 2026-02-18 19:03:41 +09:00
Yuki Okushi 0ffaa78a32
docs(web): document introspection feature (#3937) 2026-02-18 17:14:25 +09:00
Yuki Okushi 11872101a3
fix(http): drain unread body if chunked and dropped payload (#3936)
fix(http): drain unready body if chunked and dropped payload
2026-02-18 16:46:16 +09:00
augustin f120479030
docs(actix-router): document Resource trait (#3935)
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2026-02-16 22:27:14 +00:00
cui 36dadc5351
typo: bytes=bytes=0-9 to bytes=0-9 (#3934)
* typo: bytes=bytes=0-9 to bytes=0-9

* fix: ci

* fix: ci
2026-02-16 11:54:34 +00:00
dependabot[bot] 38dd705bf7
build(deps): bump taiki-e/cache-cargo-install-action from 3.0.1 to 3.0.2 (#3928)
Bumps [taiki-e/cache-cargo-install-action](https://github.com/taiki-e/cache-cargo-install-action) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/taiki-e/cache-cargo-install-action/releases)
- [Changelog](https://github.com/taiki-e/cache-cargo-install-action/blob/main/CHANGELOG.md)
- [Commits](34ce512083...2bfc3cedaf)

---
updated-dependencies:
- dependency-name: taiki-e/cache-cargo-install-action
  dependency-version: 3.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-16 10:03:53 +00:00
dependabot[bot] 102cad326d
build(deps): bump trybuild from 1.0.115 to 1.0.116 (#3929)
Bumps [trybuild](https://github.com/dtolnay/trybuild) from 1.0.115 to 1.0.116.
- [Release notes](https://github.com/dtolnay/trybuild/releases)
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.115...1.0.116)

---
updated-dependencies:
- dependency-name: trybuild
  dependency-version: 1.0.116
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-16 09:49:09 +00:00
dependabot[bot] 706097d9ce
build(deps): bump env_logger from 0.11.8 to 0.11.9 (#3932)
Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.11.8 to 0.11.9.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.11.8...v0.11.9)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-version: 0.11.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-16 09:44:28 +00:00
dependabot[bot] 4a2246e02d
build(deps): bump taiki-e/install-action from 2.67.25 to 2.67.30 (#3927)
Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.67.25 to 2.67.30.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](f176c07a0a...288875dd3d)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.67.30
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-16 09:11:18 +00:00
dependabot[bot] a3722fa0fe
build(deps): bump futures-util from 0.3.31 to 0.3.32 (#3930)
Bumps [futures-util](https://github.com/rust-lang/futures-rs) from 0.3.31 to 0.3.32.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.31...0.3.32)

---
updated-dependencies:
- dependency-name: futures-util
  dependency-version: 0.3.32
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-16 08:33:54 +00:00
dependabot[bot] 62caea706e
build(deps): bump tempfile from 3.24.0 to 3.25.0 (#3931)
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.24.0 to 3.25.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/commits)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-version: 3.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-16 08:33:51 +00:00
dependabot[bot] 15e5c5b4b6
build(deps): bump futures-core from 0.3.31 to 0.3.32 (#3933)
Bumps [futures-core](https://github.com/rust-lang/futures-rs) from 0.3.31 to 0.3.32.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.31...0.3.32)

---
updated-dependencies:
- dependency-name: futures-core
  dependency-version: 0.3.32
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-16 08:18:15 +00:00
Yuki Okushi 5a6c8d235b
feat(http,web): expose config for H2 window sizes (#3926)
* feat(http,web): expose config for H2 window sizes

* changelog
2026-02-15 16:36:27 +09:00
Yuki Okushi 6d81907540
fix(files,http,web): do not compress 206 at all (#3923) 2026-02-15 08:56:43 +09:00
Yuki Okushi b1fb44722a
docs(files): improve `index_file` docs (#3924) 2026-02-14 20:52:04 +09:00
Yuki Okushi f31f9bc92c
fix(files): do not panic on pre-EPOCH files (#3922) 2026-02-14 10:25:48 +09:00
Yuki Okushi 0fb2527c60
fix(router,web): fix panic when normalizing and rewriting paths (#3919) 2026-02-12 21:28:17 +09:00
Yuki Okushi 7d81d7b5c8
docs(web): Add notes for request headers (#3921) 2026-02-12 21:28:02 +09:00
Yuki Okushi d66f89b7b6
feat(http,web): add config for `TCP_NODELAY` (#3918) 2026-02-12 05:57:02 +09:00
Yuki Okushi d98b35db92
docs(web): add note about experimental feature (#3916) 2026-02-11 15:45:14 +09:00
Guillermo Céspedes Tabárez 84ddfe7b97
feat(web): initial support for route and HTTP method introspection (#3594)
* feat(resources-introspection): add support for resource metadata retrieval

* misc: remove debug print

* style: cargo fmt

* fix(guards): replace take_guards with get_guards to prevent guard removal and fix test failures

* ci: downgrade for msrv litemap to version 0.7.4 in justfile

* chore: update changelog and fix docs for CI

* ci: downgrade for msrv zerofrom to version 0.1.5 in justfile

* refactor: improve thread safety and add unit tests for introspection process

* fix(introspection): add conditional arbiter creation for io-uring support

* fix(introspection): add conditional arbiter creation for io-uring support

* refactor(introspection): add GuardDetail enum and remove downcast_ref usage

- Added `GuardDetail` enum to encapsulate various introspection details of a guard.
- Refactored `HttpMethodsExtractor` implementation to use `GuardDetail` instead of `downcast_ref`.

* refactor(introspection): add GuardDetail enum and remove downcast_ref usage

- Added `GuardDetail` enum to encapsulate various introspection details of a guard.
- Refactored `HttpMethodsExtractor` implementation to use `GuardDetail` instead of `downcast_ref`.

* feat(introspection): rename feature from `resources-introspection` to `experimental-introspection`
- Refactored introspection logic.
- Enhanced route introspection to register HTTP methods and guard names.
- Added example for testing the experimental introspection feature.

* fix Cargo.lock

* feat(introspection): enhance introspection feature with detailed route registration and full path tracking

* optimize debug log and apply clippy/fmt suggestions

* feat(introspection): enhance introspection handlers for JSON and plain text responses

* feat(introspection): implement experimental introspection feature with multiple App instances

* Enhance experimental introspection feature with detailed route reporting

- Introduced a new `experimental-introspection` feature that provides comprehensive reports on configured routes, including paths, methods, guards, and resource metadata.
- Added support for reachability hints to identify shadowed or conflicting routes.
- Implemented new endpoints for external resources reporting.
- Updated existing route registration to include detailed introspection data.
- Enhanced guard implementations to provide introspection details.

* Refactor route registration to use RouteInfo struct & cargo clippy

* put all the items behind feature gate

* tweak

* fmt

---------

Co-authored-by: Guillermo Céspedes Tabárez <gcespedes@prexcard.com>
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2026-02-11 06:25:39 +00:00
Yuki Okushi 9f679990ed
test(http): wrap timeout test with rt::time::timeout (#3915) 2026-02-11 13:57:29 +09:00
nitn3lav 4f0912d1c7
PathDeserializer: use `deserialize_str` for `deserialize_any` (#2881)
* PathDeserializer: use `deserialize_str` for `deserialize_any`

* fix `deserialize_any` for `seq` and `map`

* add tests for `deserialize_any`

* parse numeric values as well

---------

Co-authored-by: Rob Ede <robjtede@icloud.com>
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2026-02-10 09:53:23 +00:00
Yuki Okushi 5548fadc7d
fix(files): handle `bytes=0-` nicely (#3914) 2026-02-09 21:40:29 +00:00
Filip Gregor 32cb3b8361
feat: ignore unparsable cookies in Cookie header (#3814)
fix: ignore unparsable cookies in Cookie header

Co-authored-by: Rob Ede <robjtede@icloud.com>
2026-02-09 12:53:40 +00:00
dependabot[bot] 747d7c0def
build(deps): bump memchr from 2.7.6 to 2.8.0 (#3913)
Bumps [memchr](https://github.com/BurntSushi/memchr) from 2.7.6 to 2.8.0.
- [Commits](https://github.com/BurntSushi/memchr/compare/2.7.6...2.8.0)

---
updated-dependencies:
- dependency-name: memchr
  dependency-version: 2.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2026-02-09 11:58:49 +00:00
dependabot[bot] b2523fb1cc
build(deps): bump taiki-e/install-action from 2.67.18 to 2.67.25 (#3912)
Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.67.18 to 2.67.25.
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](650c5ca142...f176c07a0a)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.67.25
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-09 19:32:59 +09:00
Yuki Okushi 41e4863748
fix(awc): do not request as chunked if body is empty (#3910) 2026-02-08 16:03:04 +09:00
Anton Lazarev 9856a3b056
Support serving pre-compressed files for static sites (#2615)
* support serving pre-compressed files for static sites

* Update CHANGES.md

* fix behavior change for audio file

* follow-up some inconsistency

* test(files): make encoding test independent of fixture line endings

---------

Co-authored-by: Rob Ede <robjtede@icloud.com>
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2026-02-08 02:15:38 +00:00
Yuki Okushi 80d7d9c01a
chore(awc): address clippy warnings (#3909) 2026-02-08 10:30:19 +09:00
Yuki Okushi bc27fd2724 chore(files): prepare v0.6.10 release 2026-02-06 21:12:50 +09:00
Yuki Okushi 06a354fe52
Merge commit from fork 2026-02-06 21:05:15 +09:00
Yuki Okushi d9b96e635d
Merge commit from fork 2026-02-06 21:04:03 +09:00
dependabot[bot] 2c0be64b68
build(deps): bump time from 0.3.46 to 0.3.47 (#3906)
Bumps [time](https://github.com/time-rs/time) from 0.3.46 to 0.3.47.
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](https://github.com/time-rs/time/compare/v0.3.46...v0.3.47)

---
updated-dependencies:
- dependency-name: time
  dependency-version: 0.3.47
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-05 21:09:25 +00:00
Yuki Okushi 6efc4bdfb5
chore(*): update deps (#3904) 2026-02-04 18:59:11 +09:00