salvo 0.77.0 compile error
What happened?
shuttle-runtime = "0.53.0" shuttle-salvo = "0.53.0" salvo = "0.77.0"
Version
v0.5.3.0
Which operating system(s) are you seeing the problem on?
macOS
Which CPU architectures are you seeing the problem on?
ARM64
Relevant log output
Duplicate declaration
- [x] I have searched the issues and there are none like this.
Hey @zaijie1213, could you please share the error message in the ticket description?
Hey @zaijie1213, could you please share the error message in the ticket description?
--> src/main.rs:12:15
|
12 | Ok(router.into())
| ^^^^ the trait From<salvo::Router> is not implemented for SalvoService
|
The version of salvo your crate uses has to match the version that shuttle-salvo depends on, which is currently 0.75.0, so if you downgrade it should work.
Copy https://github.com/shuttle-hq/shuttle/blob/main/services/shuttle-salvo/src/lib.rs as a module into your project.
Test with salvo 0.82 is ok.
Updates to shuttle-salvo coming soon