this post was submitted on 03 Oct 2023
22 points (86.7% liked)

Programming

21545 readers
333 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

I think I'm going to start learning Rust. Can anyone suggest a good IDE to use?

you are viewing a single comment's thread
view the rest of the comments
[–] lysdexic@programming.dev 4 points 2 years ago (2 children)

There’s no bulky management of a virtual environment, no make files, no maven, etc. Just a human-readable cargo.toml for your packages

In your perspective, what's the difference between a cargo.toml and a requirements.txt, packages.json, pom.xml, etc? Is there any?

[–] thesmokingman@programming.dev 1 points 2 years ago (1 children)

Vanilla cargo.toml files are more akin to a requirements.txt than any of the others, which allow you to do things like set variables or create run scripts. However, vanilla cargo.toml files have some minimal Make functionality so it’s a bit more than just project dependencies. Each of those ecosystems has a slightly different approach to handling build tooling and dependency management. Rust puts the basic build and dependencies in one file with the assumption your system has the right Rust version, which is a lot simpler than others.

[–] lysdexic@programming.dev 3 points 2 years ago (1 children)

So there is fundamentally no difference between cargo and any other contemporary dependency/package manager.

[–] dukk@programming.dev 2 points 2 years ago

Well, it is standard.

That’s probably the biggest thing to consider: you use Rust, you use Cargo. It’s unanimous.

It’s built right into the language ecosystem, so there’s no divide, and everything’s just easily available to you.

[–] jeffhykin@lemm.ee 1 points 2 years ago* (last edited 2 years ago)

To get to your core point; I agree python without a virtual env, just raw python, is definintely not bulky. I'd argue its much more lightweight than cargo. My comment was because sounds like OP could be new-ish to programming, and, for a number of projects (ex; Android development), going from a big IDE to just a plaintext editor + command line commands can be a really painful jump. I remeber a Java course having a series of IDE tutorials and I could not for the life of me figure out the plaintext+commandline equivlent. The same can happen for certain python projects if a tutorial expects the editor to set the PYTHONPATH and the project has a venv, and the tutorial expects the editor's terminals start already-inside python virtual environment. That kind of stuff can make 'python without an IDE" confusing and daunting to someone merely following PyCharm tutorials.

I just wanted to assure OP they likely wouldn't have that kind of experince with Rust. AFAIK Rust tutorials rarely (if ever) assume an IDE.

Being not-bulky isn't a rust specific thing, a half-decent package manager meets the qualitification, but OP was asking about Rust and might not know.