t_wの輪郭

Feedlyでフォローするボタン

あれ

2023/7/17 13:57:00
Rust Visual C++ prerequisites

Rust requires a linker and Windows API libraries but they don't seem to be
available.

These components can be acquired through a Visual Studio installer.

1) Quick install via the Visual Studio Community installer
   (free for individuals, academic uses, and open source).

2) Manually install the prerequisites
   (for enterprise and advanced users).

3) Don't install the prerequisites
   (if you're targeting the GNU ABI).

>

Visual Studioに依存しててキショいな。Windowsやめたい。

MSYS2が入った状態で3)を選んだらインストールまでは行けた

rustup set default-host x86_64-pc-windows-gnuをしたうえでcargo runしたら動いた