mirror of
https://github.com/actix/actix-web.git
synced 2024-11-22 09:31:10 +00:00
Do not require actix-router default features from actix-web-codegen (#3372)
* fix: Do not require actix-router default features from actix-web-codegen * docs: update changelog * test: update trybuild stderr --------- Co-authored-by: Dylan Anthony <dbanty@users.noreply.github.com> Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
parent
85655f731d
commit
b2d0196f34
3 changed files with 3 additions and 5 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
- Prevent inclusion of default `actix-router` features.
|
||||||
- Minimum supported Rust version (MSRV) is now 1.72.
|
- Minimum supported Rust version (MSRV) is now 1.72.
|
||||||
|
|
||||||
## 4.2.2
|
## 4.2.2
|
||||||
|
|
|
@ -16,7 +16,7 @@ rust-version.workspace = true
|
||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-router = "0.5"
|
actix-router = { version = "0.5", default-features = false }
|
||||||
proc-macro2 = "1"
|
proc-macro2 = "1"
|
||||||
quote = "1"
|
quote = "1"
|
||||||
syn = { version = "2", features = ["full", "extra-traits"] }
|
syn = { version = "2", features = ["full", "extra-traits"] }
|
||||||
|
|
|
@ -20,10 +20,7 @@ error: custom attribute panicked
|
||||||
13 | #[get("/{}")]
|
13 | #[get("/{}")]
|
||||||
| ^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= help: message: Wrong path pattern: "/{}" regex parse error:
|
= help: message: Wrong path pattern: "/{}" empty capture group names are not allowed
|
||||||
((?s-m)^/(?P<>[^/]+))$
|
|
||||||
^
|
|
||||||
error: empty capture group name
|
|
||||||
|
|
||||||
error: custom attribute panicked
|
error: custom attribute panicked
|
||||||
--> $DIR/route-malformed-path-fail.rs:23:1
|
--> $DIR/route-malformed-path-fail.rs:23:1
|
||||||
|
|
Loading…
Reference in a new issue