I have a program written in Rust that takes some input files (which are what are in the repo), and spits out HTML. Currently I have it running from source, but that takes a minute+ per deployment. I’d like to be able to create a binary using cargo build --release
that will work on Netlify, but I’m not sure how. The binary that my machine builds doesn’t work (obviously). Is there a way to make a binary that will work properly on netlify?
Hi @meskin
As per Announcing Rust support on Netlify and associated documentation Rust and Cargo are preinstalled in Netlify’s default build image.
Rust and Cargo are preinstalled in Netlify’s default build image.
I’m aware of this - my question was how I could get a built rust binary to run on Netlify to cut down on build time.