Rocket Version
0.5.1
Operating System
Linux
Rust Toolchain Version
rustc 1.88
What happened?
When trying to define a route path like this using the macro, prefixed with @, the attribute passed has this error:
#[get("/@<username>")]
fn user(username: &str) -> String {
the trait bound `&str: FromRequest<'_>` is not satisfied
the following other types implement trait `FromRequest<'r>`:
&'r ContentType
&'r Limits
&'r Route
&'r rocket::Config
&'r rocket::State<T>
&'r rocket::http::Accept
&'r rocket::http::CookieJar<'r>
&'r rocket::http::uri::Host<'r>
As per HTTP spec you should be able to use @, emojis, etc in URL.
Test Case
Log Output
Additional Context
No response
System Checks
Rocket Version
0.5.1
Operating System
Linux
Rust Toolchain Version
rustc 1.88
What happened?
When trying to define a route path like this using the macro, prefixed with
@, the attribute passed has this error:As per HTTP spec you should be able to use
@, emojis, etc in URL.Test Case
Log Output
Additional Context
No response
System Checks
rustctoolchain.