11 ms·
Visual Rust 0.1 is out
- wspeirs 11y agoSadly doesn't work with Visual Studio Code: https://code.visualstudio.com/ https://code.visualstudio.com/
- czechdeveloper 11y agoBecause it's beta of totally new product which is Visual Studio only by name.
- rhodysurf 11y agoNor should it be expected to
- sp332 11y agoI expected it to. Oh well.
- wlesieutre 11y agoVS Code is more of a text editor and less of an IDE. I'd say it's target market is closer to Sublime Text's than Visual Studio's.
- callumjones 11y agoBecause Visual Studio Code isn't like Visual Studio at all. It doesn't support any of the VS extensions (because it's a completely different product).
- thescrewdriver 11y agoPerhaps they shouldn't have given it virtually the same name then. I can understand that he had an expectation given the naming choice. It also means that this support is Windows only.
- k__ 11y agoWhat are the features?
- orf 11y agoIs this using the Roslyn project to do intellisese stuff?
- josteink 11y agoThe Emacs-crowd is usually pretty crazy about supporting anything under the sun. But if this[1] is the best Rust-support the Emacs crowd can conjure up, this Visual thingie here actually looks like a better package for people looking into rust for the first time. Not bad. [1] https://github.com/toshok/rust-mode https://github.com/toshok/rust-mode
- hvis 11y agoThere's also https://github.com/phildawes/racer https://github.com/phildawes/racer (haven't tried it myself, I've yet to get into Rust).
- steveklabnik 11y agoWe have an official one in the rust-lang org.
- cmrx64 11y agoNo, that's not the best. https://github.com/rust-lang/rust-mode https://github.com/rust-lang/rust-mode is.
- xilec 11y agoHere https://visualstudiogallery.msdn.microsoft.com/c6075d2f-8864-47c0-8333-92f183d3e640 https://visualstudiogallery.msdn.microsoft.com/c6075d2f-8864... Your can see features, download and try
- MichaelGG 11y agoI can't wait to try this. If it can just get to the level of the first F# plugin, I'll be so happy. If MS picked up interest in Rust that'd be even more amazing. And it'd actually solve their security problems, unlike the more and more convoluted codegen they're doing for C++. Edit: to be clear, I mean the security problems that their C++ codegen is trying to solve, like stack cookies, ASLR, or the new stuff they were boasting about at build in the ObjC VS2015 codegen video. (Some special function call thing that stores a map of legitimate function call targets and checks before calling.) All that stuff is eliminated by having a sound design in the first place.
- steveklabnik 11y agoThere is no silver bullet. Nothing solves security problems. I like your enthusiasm though :)
- MichaelGG 11y agoNo, but Rust solves the exact security problems that MS's codegen is trying to solve. Look at the Obj-C VS2015 video that was posted here a bit ago. They're constantly coming up with these crazy hacks to reduce the impact of lack of memory safety. It just seems so inelegant, such a waste of effort and intelligence. (I know, it's actually very useful, since MS is mostly C++, so mitigation is a real value.) And look at this month's security bulletin from Microsoft. Once again, memory safety appears to be the leading offender. This is the same as it's always been. MS's critical CVE would drop by over 90% (I think more, but it's been a while since I tallied them all up) just by having memory safety.
- pjmlp 11y agoMS and anyone else that jumped on the C ship long time ago. These issues have been preached by us with experience in strong memory systems programming languages, e.g. Modula-2, Modula-3, Oberon, Ada, Pascal dialects... But the industry needs to be exploited every day, spend huge pile of money in memory integer validation tools, the workarounds you mention (other compiler vendors do it as well) and still keep on fixing memory corruption exploits. To eventually start caring about this issues. A visible side effect is the increase in Ada presence at FOSDEM in the last years, as well as, the industry acceptance of SPARK. Back in the day I went to C++ from Turbo Pascal, because at least the language provided the tools to write safe code, if (big if) I cared to use them. So there was a path to achieve Algol type of safety. The big issue is that due to its almost copy-paste compatibility with C, the added safety is not worth nothing if developers just keep on coding C with a C++ compiler. Rust might eventually also suffer from this, given the amount of unsafe being used, I keep on seeing in code examples.
- osense 11y agoI would prefer a cross-platform solution much more... like an IntelliJ IDEA plugin, for example.
- moron4hire 11y agoThis doesn't preclude such a thing
- alimbada 11y agoThere's nothing stopping you from porting the code to a Xamarin Studio add-in.
- tauchunfall 11y agoI think a Visual Studio plugin is a very good start, since the IDE already supports C/C++ and I guess these users are a very important target audience for Rust. There is also a Rust extension for the IntelliJ platform [0]. It supports some basic IDE features, but the last commit was in February. The Rust extension could fit really good to Jetbrains' new C/C++ IDE CLion. [0] https://github.com/Vektah/idea-rust https://github.com/Vektah/idea-rust
- Maken 11y agoThere is Racer https://github.com/phildawes/racer https://github.com/phildawes/racer which pretty much works with any IDE.
- stirno 11y agoOnce we get our plugin repository ready to go, Scrawl [0] will have some support for Rust as well, thanks to some great community projects. Paul did a quick POC today [1] that added autocomplete, go to def and some basic code intel tooltips. [0] https://fluentco.de/ https://fluentco.de/ [1] https://twitter.com/pzumbrun/status/599017886276026369 https://twitter.com/pzumbrun/status/599017886276026369
- coldnebo 11y agoDoes this use the rust ast? Ala llvm? I keep hoping for a new age where editors can simply use the language itself to define structure.
- Manishearth 11y agoRacer, the autocomplete engine, does. I'm not sure if there's more plugin usage since I haven't looked at the source yet. Rust has great support for hooking in to the compiler and/or creating drop-in replacements. I'm hoping this pans out well and leads to some excellent tooling! :D
- inlinevoid 11y agoIt's a nice start. I installed the plugin and was able to create a Rust project and run it from Visual Studio Community 2013 without any hassle. Although, there are a few issues holding it back from being a pretty sweet Rust IDE... -- (Major) The indenting for braces isn't handled properly. Try creating a function you'll see what I mean. -- Errors in the Error List are too vague. -- Would be awesome if the rustc build output was displayed in the Output window. -- Syntax highlighting could be greatly improved, it's pretty basic atm.
- xilec 11y agoWe will be very appreciative if you add your notes in issues of project https://github.com/PistonDevelopers/VisualRust/issues https://github.com/PistonDevelopers/VisualRust/issues
- steveklabnik 11y agoThis thread may also be interested in this PR, which adds MSVC support to the compiler itself: https://github.com/rust-lang/rust/pull/25350 https://github.com/rust-lang/rust/pull/25350 Windows + Rust has come a long way. It's still not perfect, but it's getting there!
- fithisux 11y agoHopefully they do not kill mingw support, since this was their intention some time ago.
- jebronie 11y agoI got visual rust all over my car.
- fithisux 11y agoIt is a pitty I do not use visual studio. But anyway, congratulations. Any other Rust ide suggestions on MSWindows?