Ruststudio 0.1.6
Release notes for version 0.1.6.
Updated · describes Ruststudio 0.1.6
- New: Git without leaving the IDE. The Source Control view (Ctrl+Shift+G) and the new Git menu run your own
git, with your hooks and your credential helper; Ruststudio never asks for or stores a password. Changes are listed as merge conflicts, staged, not staged and untracked, with stage, unstage and discard for a file or a whole list. A diff view shows staged and unstaged changes, and you can stage, unstage or discard one change or only the lines you click (F7 / Shift+F7 move between changes). Bars beside the line numbers mark added, changed and removed lines as you type; click one to see what was there, revert it or stage it (Alt+F3 / Shift+Alt+F3 jump between changes). - New: commit from a multi-line message box (Ctrl+Enter), amend, commit all, and set your name and e-mail in one click when Git does not know them. The status bar shows the branch with what is to push and pull; the branch list switches, creates and deletes merged branches. Fetch, Pull and Push show progress in the Output panel and can be cancelled. Pull is fast-forward only and asks before merging or rebasing; the first push of a branch asks before publishing it. Nothing is forced: when Git refuses, its message is shown.
- New: merge conflicts are listed first; in the editor the two sides are tinted, and Accept Current / Incoming / Both settles one. Blame for the current line (Git > Toggle Blame) and File History for the open file, across renames.
- New: tests without leaving the editor. Run and Debug icons sit in the margin beside every test function and beside
fn main, there as soon as a file is open; after a run the icon is a green tick or a red cross. The Test Explorer (Alt+F6) lists the tests as Cargo reports them: package, test binary, module, test, doc tests and ignored tests, with a filter, Run All, Run Failed, Run and Debug for the selected row, and Stop. Results appear per test while the run is going; a failed test shows its panic message and file and line (click to go there) and is listed in the Problems panel. F6 runs the test at the cursor, Shift+F6 debugs it, Ctrl+F6 runs the tests of the file, Ctrl+Shift+F6 repeats the last run. Debugging a test hits breakpoints in the test and in the code it calls. - New: inlay hints. The types of variables, the parameter names at calls and the types along a method chain appear dim inside the code. They are not part of the file and the caret skips them. View > Toggle Inlay Hints turns them off.
- New: variable values in the editor while debugging. When the program is paused, the values of the function's variables appear at the end of the lines that use them and refresh at every step. Debug > Toggle Inline Values While Debugging turns them off.
- New: Go to Implementation (Shift+Alt+F12, also in the right-click menu). One implementation opens; several are listed like Find All References. Ctrl+F12 still works.
- New: package sources. In the Rupm and NuGet views and Tools > Packages: Manage Sources you can switch nuget.org, the Ruststudio NuGet feed, crates.io and rupm on or off, test them, and add any NuGet V3 feed or Cargo sparse registry. Pick one source or all; each result names its source. A source that cannot be reached is named with the reason and the others still answer.
- New: publish from the IDE. Packages: Publish to rupm (runs
cargo publish) and Packages: Publish to NuGet push your package after a dialog that shows the package, version and registry and says publishing is public; a dry run uploads nothing. Your API key (from the website's Packages page) is never shown, logged or written into a project. - New: "Install in Ruststudio" links on the website's package pages. The link is checked strictly, the package is looked up on your own source, and nothing is installed before you say yes. The Windows and Linux installers register the link for your user account.
- New: the website now has public package pages for rupm and NuGet, and you can register, upload and manage your packages there.
- Changed: Ctrl+Shift+G now opens Source Control (it used to be a second key for Go to Line; Ctrl+G is unchanged).
- Changed: Ctrl+Shift+T (Run All Tests) now shows each test's result in the Test Explorer. It runs the whole workspace and lets every test binary finish.
- Not yet: the diff is unified (no side-by-side), blame shows the current line only, and there is no stash, interactive rebase or commit graph (the Terminal does those). No code coverage. Native iOS apps are still in development and are not part of this release.
Read the article: Ruststudio 0.1.6: Git, a test explorer, inlay hints and package sources, built into the IDE.