Ruststudio is a free IDE for Rust that is itself written in Rust: one native program of about
10 MB, Version 0.1.6 moves three things into the editor that used to need a terminal: Git, running
single tests, and adding packages. This post is less a feature list (the release article
has that) than the three design decisions I would defend, and the places where I am not sure I got it right.
Decision 1: do not implement Git, run it
The obvious route is a Git library. I chose to run the git the user already has, for one reason: a Git panel is only
trustworthy if it does exactly what git in the terminal would do. Hooks run. .gitconfig applies. Your credential helper
signs you in, which means the IDE never sees, asks for or stores a password. When Git refuses, the panel shows Git's words and
does not retry with a force flag.
The cost is that you depend on Git's output, and you have to be careful with names (spaces, non-English letters, renames, binary
files).…