#Rust #Bitbucket #Windows
https://own-search-and-study.xyz/2020/04/19/rust-windows-linux-cross-compile/
```yaml
- step:
script:
- apt-get update
- apt install -y mingw-w64
- mkdir .cargo
- echo '[target.x86_64-pc-windows-gnu]' >> .cargo/config
- echo 'linker = "x86_64-w64-mingw32-gcc"' >> .cargo/config
- rustup target add x86_64-pc-windows-gnu
- rustup target list
- cargo build --release --target x86_64-pc-windows-gnu
artifacts:
- 'target/x86_64-pc-windows-gnu/release/your-application.exe'
```
[[cross]]は[[docker in docker]]の課題が解決できずに諦めた。