rust-lang / rls

Repository for the Rust Language Server (aka RLS)
Other
3.51k stars 257 forks source link

I want to install rls, but I see that I need to install rustup. It is not a good idea to install too many thins for new user. #1752

Open netjune opened 3 years ago

netjune commented 3 years ago

It is not a good idea to install too many thins for new user.

I'm a golang user. I just want to have a try with rust. But I need to install too many things. It makes me give up.

jneira commented 2 years ago

Hi, there is an option to opt out rustup usage:

"rust-client.disableRustup": false

the description says: Disable usage of rustup and use rustc/rls from PATH

So in theory it could work installing only rustc and rls. I think the default is good as rustup is really easy to install and the extension uses it to install the rest of things.

ashton314 commented 2 years ago

The go command, if I remember correctly, bundles up a bunch of things that Rust has broken out into individual utilities; consider installing rustup like having the go get subcommand. (Not the best comparison, but it gets the idea across.) It's part of the core language tooling, so it shouldn't cause you any pain (unless you are, for some reason, really strapped on disk space) to install it.

ashton314 commented 2 years ago

Bear in mind, you don’t need rls to try out Rust. All you really need is rustc (and cargo probably) so if you want more tooling, you’re just going to have to install the tool chain manager if you don’t want to jump through some awkward hoops.

nemith commented 2 years ago

The go command, if I remember correctly, bundles up a bunch of things that Rust has broken out into individual utilities;

Really the go command is equivelent to cargo. My biggest beef with cargo is installing toolchains and toolsinto $HOME. I don't want them there and it's harder to control versioning of my system which includes non-rust utilities as well.