Skip to content

jscharnitzke/rust-build-windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Build Rust Projects for Windows

The official Rust Docker image is configured to build for Linux targets out-of-the-box. This Dockerfile defines a Docker image to build Rust projects targeting Windows instead.

Build

  • Download Dockerfile
  • Navigate to where you downloaded the file
  • Run docker build . -t [image-name]

Use

Debug Builds: docker run -rm -v "[path-to-Rust-project]:/app -w /app [image-name]

Release Builds: docker run -rm -v "[path-to-Rust-project]:/app -w /app [image-name] --release

.exe files will be output in [path-to-Rust-project]/target/x86_64-pc-windows-gnu/[debug|release].

Public Image

If you want, you can use a pre-built image that I've published to Docker Hub: jscharnitzke/rust-build-windows

About

Dockerfile for a simple Docker image to build Rust projects with a Windows target.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published