From 56c9671888073d6e09cc40531ed7bb27d1cf626c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sch=C3=A4r?= Date: Tue, 29 Dec 2020 16:47:04 +0100 Subject: [PATCH] Document setup on Windows --- docs-src/index.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs-src/index.md b/docs-src/index.md index 025c721df..77f1fd826 100644 --- a/docs-src/index.md +++ b/docs-src/index.md @@ -7,6 +7,24 @@ layout: default First, prepare your system by taking a look at the [GTK installation page](https://www.gtk.org/docs/installations/). +### Setup on Windows + +On Windows, some Rust-specific steps are necessary: + +1. If you haven't already, [install rustup](https://rustup.rs/) +2. [Install MSYS2](https://www.msys2.org/) +3. Open a cmd prompt (not MSYS2 terminal) and run these commands: + + set PATH=C:\msys64\mingw64\bin;%PATH%;C:\msys64\usr\bin + set PKG_CONFIG_PATH=C:\msys64\mingw64\lib\pkgconfig + set RUSTUP_TOOLCHAIN=stable-x86_64-pc-windows-gnu + + rustup toolchain install stable-x86_64-pc-windows-gnu + pacman -S pkg-config mingw-w64-x86_64-gcc mingw-w64-x86_64-gtk3 + +Now you should able to `cargo run` your Rust project. +Note that you need to setup the environment variables as above each time you start a new terminal. + ## Crate API docs - [**atk**](../docs/atk/)