Sign inSign up

etrombly/rust-crosscompile

By etrombly

Updated over 5 years ago

Cross compile environment to build windows GTK applications in rust

Image
0

1.1K

etrombly/rust-crosscompile repository overview

Rust Cross-compile

Docker container for cross compiling rust gtk apps to Windows from Linux.

By default will package all required DLLs into a package.zip.

Typical usage:

  1. Create a container with the source mounted the image (which starts the build):

    docker create -v $(pwd):/home/rust/src --name PROJECTNAME-build rust-crosscompile:latest
    

    If you'd like to use the included windows 10 theme create the container like this:

    docker create -e WIN_THEME=true -v $(pwd):/home/rust/src --name PROJECTNAME-build rust-crosscompile:latest
    
  2. Each time you want to build the project, start the Docker container.

    docker start -ai PROJECTNAME-build
    

If there are dependencies you need that are not included in the official image:

  1. Modify the Dockerfile to add all your native dependencies

  2. Building the image:

    docker build . -t PROJECTNAME-build-image
    
  3. Create a container with the source mounted the image (which kicks off the build):

    docker create -v $(pwd):/home/rust/src --name PROJECTNAME-build PROJECTNAME-build-image
    
  4. Each time you want to build the project, start the Docker container.

    docker start -ai PROJECTNAME-build
    

Tag summary

Content type

Image

Digest

Size

694.1 MB

Last updated

over 5 years ago

docker pull etrombly/rust-crosscompile