Rust server fails on railway
I'm trying to host my rust server on railway I use this guy's template https://railway.app/template/4lz789, when project build main panics and throws error about
OPENSSL
here is full error
how can I fix that issue?23 Replies
Project ID:
e5ef3329-8973-45aa-85cf-12d7e6349ff7
fe64c2e8-8097-4844-aa29-e89674a68409
project id: fe64c2e8-8097-4844-aa29-e89674a68409
try adding a nixpacks.toml file with this in it
show me your nixpacks.toml file please
I just pasted what u told me 😄
what's the default root directory for that template?
/app
right now I moved nixpacks.toml in
app
project is building
still failed
in build logs saw libssl-dev
installedokay, I will do some testing later and get back to you
thanks
i just hosted same template and it worked
but when i make some changes in code
it fails
you must have added a crate that relies on openssl
please provide me a minimal reproducible repo, or there's not much I can do to help, I was under the impression the unmodified template fails to build
I literally hosted https://github.com/dobecad/actix-sqlx-pg this and it worked when I made changes, it started failing, i just reseted everything as it was default, and now its still failing
^
found out
reqwest
package causes thatI would still need a minimal reproducible repo
okay wait
GitHub
GitHub - callmenikk/Actix
Contribute to callmenikk/Actix development by creating an account on GitHub.
here is
in Cargo.toml if i remove
reqwest
it builds wellthanks, I will do some tests later
I just fixed it by adding
openssl
package in cargoSolution
ah I'm glad you could solve it!