irust 0.3.4

Cross Platform Rust Repl
irust-0.3.4 is not a library.
Visit the last successful build: irust-1.2.8

IRust

Cross Platform Rust Repl

Keywords / Tips & Tricks

:help => print help

:reset => reset repl

:show => show repl current code

:add <dep_list> => add dependencies (requires cargo-edit)

:load => load a rust script into the repl

:: => run a shell command, example ::ls

You can use arrow keys to cycle through commands history

Keybindings

ctrl-l clear screen

ctrl-c clear line, double click to exit

ctrl-d exit if buffer is empty

ctrl-z [unix only] send IRust to the background

HOME/END go to line start / line end

Configuration

IRust config file is located in:

Linux: /home/$USER/.config/irust/config

Win: C:\Users$USER\AppData\Roaming/irust/config

Mac: /Users/$USER/Library/Preferences/irust/config

Current supported options:

add_irust_cmd_to_history
add_shell_cmd_to_history

Changeslog

0.3.4

  • Add :help command

0.3.3

  • Reworked Output, now colors are everywhere and easier to add!
  • IRust now talks to you (outputs some warning for now)

0.3.2

  • Format rustc errors to be way more better looking

0.3.1

  • Fix regression: Readd expressions to history

0.3.0

  • Handle characters like é, ù

0.2.1x

  • Don't upload artifacts to crates.io

0.2.0

Credits to this release goes to the awesome suggestions and contributions of @pzmarzly

  • add Ctrl-Z Ctrl-C Ctrl-D keybindings
  • add configuration file

0.1.7

  • IRust
  • Nicer output (handle multiline and singleline diffrently)

0.1.6

  • Add keybindings HOME END
  • Better add_cmd animation
  • Refactor code

0.1.5

  • Add keybindings ctrl-c ctr-l
  • Fix history regression

0.1.4

  • Handle parsing errors and output useful info
  • Fix add dep regression

0.1.3

  • Rely on a custom cursor struct to avoid a lot of headaches

0.1.2

  • Load scripts that contains main fn

0.1.1

  • Add :: to execute shell cmds
  • Bugfixes