https://linen.dev logo
Issue with running shuttle project
# help
n
Trying to run my shuttle project, but when I do, I receive this message. I saw in another post that the solution is to downgrade to 1.65, but I can't do that because the rocket database I wanted to use requires nightly
r
No, you just also need to install the dev or nightly version of the compiler via rustup
s
You can install nightly for local runs. But deployments won't work as our server is pinned to 1.65 for the time being
k
Also it looks like you're on rocket 0.4.11, did you try 0.5? That does not require nightly
r
@kind-area-3810 Well spotted!
n
I didn't notice that, I'll try it when I get back Ty c:
according to my cargo.toml, I am using rocket 0.5
k
I think for 0.5 you don't use the
rocket_contrib
crate, but I am a bit out of the loop when it comes to rocket. See 0.5 state guide here:
I'm also not sure if you need these crates with shuttle? If they're for configuring a database connection, shuttle does that for you. See here for an example of shuttle passing you a connection pool, and you can simply wrap it in a struct and pass it to rocket:
n
oh my, I didn't know it did this for us. this will probably be easier then
k
Yeah, it's pretty nice 😄 I see you're using a diesel sqlite pool, we don't really support that out of the box. Right now you can choose between postgres, mysql, mariadb and mongodb.
For all our sql DBs we pass an sqlx pool, if you'd like to use diesel that's possible but it is a bit more complicated. I'm happy to explain it if you do, though.
n
I didn't intend to use diesel sqlite, i actually wanted to use mongodb but wanted to see if it would work first 😳
k
Ah, okay, cool! Let us know if you have any problems with that, we have just one mongodb example currently I think and it's with poem, but it should be very similar between frameworks.
n
I'll see if i can check out that example, thanks C:
k
Here:
n
what would be the equivalent of this for rocket?
along with this
oh i think i get it
.manage right?
I got it working therefore I am now the happiest man alive, ty for the help C: