TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Using Rust in Windows

164 pointsby miqktabout 8 years ago

12 comments

Arnavionabout 8 years ago
Also, if using VS2017, you may also have to set the env var `VisualStudioVersion` to `15.0` to get some cmake-using crates (libssh2-sys, etc) to build. See <a href="https:&#x2F;&#x2F;github.com&#x2F;alexcrichton&#x2F;cmake-rs&#x2F;pull&#x2F;16#issuecomment-285932296" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;alexcrichton&#x2F;cmake-rs&#x2F;pull&#x2F;16#issuecommen...</a><p>(Note that 15.0 == VS2017, not VS2015)
评论 #13976648 未加载
steveklabnikabout 8 years ago
I recently switched to using Windows full-time. It started off using the Linux subsystem, but then I accidentally trashed it. So I&#x27;m now using native Windows. Powershell is surprisingly easy to adapt to, and while I still use vim often, I&#x27;ve been enjoying occasional use of VS: Code.<p>Most stuff Just Works, but there are still some rough edges. A lot of them are simply &quot;I&#x27;m not used to the Windows Way&quot; yet instead of Rust problems, though.
评论 #13977148 未加载
gepi79about 8 years ago
Thanks. I made a complementary guide to use the visual studio build tools 2017. <a href="http:&#x2F;&#x2F;lustysociety.org&#x2F;programming&#x2F;how_to_rust_language_visual_studio_2017_windows_10" rel="nofollow">http:&#x2F;&#x2F;lustysociety.org&#x2F;programming&#x2F;how_to_rust_language_vis...</a>
rukenshiaabout 8 years ago
It&#x27;s way too hard to get anything that requires OpenSSL to work, I decided not to write Rust code on my windows PC because of that. I remember the process of just getting it to work as really painful and time consuming. Other than that I really enjoy writing rust code on my Linux machine.
评论 #13975818 未加载
评论 #13975791 未加载
评论 #13976384 未加载
评论 #13975732 未加载
评论 #13980257 未加载
评论 #13975756 未加载
joaomorenoabout 8 years ago
Visual Studio Code has a pretty decent Rust extension: <a href="https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=kalitaalexey.vscode-rust" rel="nofollow">https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=kalitaal...</a>
评论 #13976177 未加载
vogabout 8 years ago
Does is also work with the Free-Software MinGW toolchain?<p>That would make it possible to generate Windows binaries without having to run a Windows VM, through cross-compiling, using e.g. MXE: <a href="http:&#x2F;&#x2F;mxe.cc&#x2F;" rel="nofollow">http:&#x2F;&#x2F;mxe.cc&#x2F;</a>
评论 #13975557 未加载
vvandersabout 8 years ago
Been working with Rust on Windows for almost a year now.<p>My go-to is VSCode + Rust plugin. You get the same debugging as VS2015 via C++ plugin(they both use the same backend). Only time I need to drop over to MSVC is if I need data breakpoints or look at disassembly(usually when I&#x27;m dealing with a C library that&#x27;s misbehaving).<p>VSCode rust plugin gets you racer, rustfmt and a bunch of other goodies(cargo test&#x2F;check right in the IDE).
评论 #13978221 未加载
Animatsabout 8 years ago
What&#x27;s the situation with using the Windows API from Rust? Are you down at the Win32 API level, or can you even do that?
评论 #13974514 未加载
评论 #13974683 未加载
tracker1about 8 years ago
I should really find some time to upgrade to VS2017, my understanding is it&#x27;s a bit faster than VS2015, not just the install. Can anyone comment on this, I always found VS to be a beast, even on an SSD, HDDs being nearly unbearable.<p>I really do like VS Code though... looks like there&#x27;s some work going there.
评论 #13974838 未加载
frikabout 8 years ago
Instead of VS try out IntelliJ IDEA with Rust plugin: <a href="https:&#x2F;&#x2F;intellij-rust.github.io" rel="nofollow">https:&#x2F;&#x2F;intellij-rust.github.io</a><p>It gives you the comfort features known from the IntelliJ platform and doesn&#x27;t add phonehome telemetry to your exe files (like VS2k15).
评论 #13974740 未加载
评论 #13976639 未加载
ranveeraggarwalabout 8 years ago
I personally prefer lxss. While it has some limitations, I am yet to face issues with rust projects. You can also use Intellij-based IDEs with a rust plugin and run `bash` in the command prompt accompanying the IDE. It feels like working on Linux ^_^
评论 #13974906 未加载
评论 #13975865 未加载
jayfluxabout 8 years ago
Is VisualRust still active? It seems dead or moving very slowly. I know there&#x27;s some commits going into the project, but their last release was over a year ago.