Menu

1 / 4

Adding Git repo & test into Rust Studio IDE

DEV Community: rust·Rust Studio·about 2 hours ago
#tsAf9jHe
#devtorust#devto#dev#test#tests
Reading 0:00
15s threshold

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).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.