#cargo #terminal #browser-interface #command-runner

app cargo-gui

A browser interface for working through rustc errors and running cargo commands

5 releases

✓ Uses Rust 2018 edition

0.3.1 Dec 18, 2019
0.3.0 Dec 17, 2019
0.1.2 Dec 3, 2019
0.1.1 Nov 23, 2019
0.1.0 Nov 23, 2019

#89 in Cargo plugins

Download history 27/week @ 2020-01-19 1/week @ 2020-01-26 5/week @ 2020-02-02 6/week @ 2020-02-09 35/week @ 2020-02-16 37/week @ 2020-02-23 1/week @ 2020-03-01 10/week @ 2020-03-08 6/week @ 2020-03-15 21/week @ 2020-03-22 5/week @ 2020-03-29 16/week @ 2020-04-05 23/week @ 2020-04-12 4/week @ 2020-04-19 1/week @ 2020-04-26 2/week @ 2020-05-03

57 downloads per month

MIT and maybe MPL-2.0

115KB
813 lines

cargo-gui

A browser interface for working through rustc errors and running cargo commands.

See the repository for a screen shot

Instructions

Install

Install cargo-gui from crates.io:

$ cargo install cargo-gui

Start the Server

Next, go to the directory of one of your cargo projects and start the cargo-gui server:

$ cd path/to/my-cargo-project
$ cargo gui

Server is listening on: http://127.0.0.1:9345

Opening the Dashboard

Now open that link in your web browser: http://localhost:9345/

In the Dashboard

You can click the Build, and Check buttons to invoke the corresponding cargo commands (i.e. Build invokes cargo build in your project directory).

If building or checking your program results in compilation errors, they will be displayed in a paginated format below. You can used the pagination navbar to see the Next, Previous, First and Last compilation errors. You can also use the left and right arrow keys on your keyboard to go to the next and previous errors.

Planned Features

  • Streaming input from cargo. Compiler messages and errors come in asynchronously as they are produced by the remote cargo command! (v0.3.0)
  • Windows 10 support. (v0.3.1)
  • Test on MacOS. See this issue if it works for you on MacOS!
  • Specialized display for cargo test commands.
  • Cancellable commands via the Cancel (^C) button.
  • Color themes (dark/light mode).
  • Generalized Run and Exec commands. This is tricky because the user could run a command like vim which constantly "repaints" the terminal window and accepts user input.

Contributing

Contributions are welcome! Please check out CONTRIBUTING.md for instructions on how to get involved.

Dependencies

~6–8.5MB
~176K SLoC