Deploying Rust tries to copy binaries that don't exist.

I'm not using my own nixpacks.toml, and railway is attempting to copy binaries that it doesn't need to run and don't exist. (I tried my own nixpacks.toml but I'd prefer to deploy this way. I'll open up a separate ticket for my problems with my own nixpacks.toml if I need to).

I would expect it to only copy tklbot.

name = "tklbot"
version = "0.3.0"
edition = "2021"
default-run = "tklbot"

name = "tklbot"
path = "src/lib.rs"

name = "tklbot"
path = "src/main.rs"

name = "integration-tests"
path = "src/bin/integration_tests.rs"


from the railway build logs:
╔═════════════════════ Nixpacks v1.15.0 ═════════════════════╗
║ setup      │ binutils, gcc, rust-bin.stable.latest.default ║
║ build      │ mkdir -p bin                                  ║
║            │ cargo build --release                         ║
║            │ cp target/release/tklbot bin                  ║
║            │ cp target/release/db bin                      ║
║            │ cp target/release/logger bin                  ║
║            │ cp target/release/mod bin                     ║
║            │ cp target/release/scoped bin                  ║
║            │ cp target/release/tests bin                   ║
║            │ cp target/release/integration_tests bin       ║
║ start      │ ./bin/tklbot                                  ║
this would require using your own nixpacks.toml, so let's see what you had for that
for deploying rust stuff i found that in the end i ended up having to just write my own dockerfile and use cargo-chef
I ended up figuring out my nixpacks woes. I was doing bin/tklbot instead of ./bin/tklbot for my start command 🤦‍♂️
Good to know that's the point I need my own nixpacks. thanks for the help!

Looking for more? Join the community!

Recommended Posts
Cron skipingSo my Cron Schedule keeps skipping every time?Request to free up custom domainMy project id : 5df73bd5-7d04-40dd-9e57-97f1cdd89a60 Can u pls delete the given custom domain, it sPR PreviewsHi everyone. Is it possible to setup PR previews with it's own set of environment variables?Looking for way to run LibreTranslate as a service on railwayI'm looking for a way to run https://libretranslate.com on my railway instance. Ideally it would beRTT to nearby datacenter has gone way up in the past few daysRegions have been amazing and are super helpful for our use case. We host our database in AWS us-easPublishing .net 7 app - project file not foundHi, I'm new in railway and i'm faced with file structure problem. I heared that way to publish is sIssue with staging: The value needs to be expressed as a valid JSON string.i'm trying to make a dev and product env's, but now i created a service on the dev env and trying toIssue with staging: The value needs to be expressed as a valid JSON string.i'm trying to make a dev and product env's, but now i created a service on the dev env and trying toUse Volume with grafana will permission deniedI was configed volume and data path, but when i start my grafana, it will crash. This is log: Error:if i disconect an account of github ?whats going on with the repository are linking with this account ? fb928ae2-62f0-4f8f-be68-9f7902efCommunication between projects without requestsHey everyone, a question. Is it possible to establish communication between projects? For example, Ihow to setup webhooks?Hey guys I'm looking for how to setup a deploy webhook similar to vercel for my website with sanity.Template services in forked environment not deployingHi! When I create a new environment from the base one the two services, that I created from a templaHow can I update the file permissions inside a railway development instance?I receive this error: "PermissionError: [Errno 13] Permission denied: './src/engines/komodo-14/LinudockerIs it possible to use commands or access through a terminal a docker image? I have a Docker image ofDeployment failingI am trying to deploy some updates to my app and I am getting errors during the build process. Dock