shuttle icon indicating copy to clipboard operation
shuttle copied to clipboard

salvo 0.77.0 compile error

Open zaijie1213 opened this issue 10 months ago • 3 comments

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.

zaijie1213 avatar Mar 13 '25 15:03 zaijie1213

Hey @zaijie1213, could you please share the error message in the ticket description?

oddgrd avatar Mar 14 '25 19:03 oddgrd

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 |

zaijie1213 avatar Mar 15 '25 03:03 zaijie1213

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.

jonaro00 avatar Mar 15 '25 23:03 jonaro00

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.

erasin avatar Aug 19 '25 03:08 erasin

Updates to shuttle-salvo coming soon

jonaro00 avatar Sep 09 '25 21:09 jonaro00