Bump matchit
to 0.8.6 to support special chars in paths
#3382
Replies: 2 comments 3 replies
-
See #3143 and more specically the linked issue #3140 and the upstream issue in matchit. It's true that this got delayed quite a bit, you might want to check with matchit if they want some help with 0.9. However, if you just want to use |
Beta Was this translation helpful? Give feedback.
-
Ok. I had tried turning off the v0.7 checks today and just tried percent encoding now, but I still get the panic My code looks more or less like: pub fn router(foo: api::AnyFoo) -> Router<()> {
Router::new()
.without_v07_checks()
.route("/", get(default_route))
.nest("/v1", v1::router(foo))
}
// ...
mod v1 {
pub fn router(foo: api::AnyFoo) -> Router<()> {
Router::new()
.without_v07_checks()
.route("/", get(default_route))
.route("/feeds", post(create_feed))
.route("/feeds/{id}%3Arefresh", post(refresh_feed))
.with_state(FooState { foo })
}
// ...
} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Perhaps we can reopen #2128 since
matchit
now seems to support colons in the paths, e.g.,/things/{id}:ping
, for patterns like in https://google.aip.dev/136? Proof of concept is in #3381.Beta Was this translation helpful? Give feedback.
All reactions