30 releases (11 breaking)

0.12.0 Oct 9, 2021
0.11.0 Jul 26, 2021
0.10.0 Jun 1, 2021
0.8.1 Feb 14, 2021
0.2.0 Oct 8, 2018

#63 in Rust patterns

Download history 1140/week @ 2021-07-07 964/week @ 2021-07-14 828/week @ 2021-07-21 461/week @ 2021-07-28 471/week @ 2021-08-04 538/week @ 2021-08-11 501/week @ 2021-08-18 391/week @ 2021-08-25 959/week @ 2021-09-01 1221/week @ 2021-09-08 1280/week @ 2021-09-15 973/week @ 2021-09-22 1216/week @ 2021-09-29 1360/week @ 2021-10-06 1236/week @ 2021-10-13 1120/week @ 2021-10-20

3,654 downloads per month

Apache-2.0

255KB
5K SLoC

Evcxr Rust REPL

Latest Version Downloads License

A Rust REPL (Read-Eval-Print loop) built using the evcxr evaluation context.

Installation and Usage

Before you install the REPL, you must download a local copy of Rust's source code:

$ rustup component add rust-src

Now you can go ahead and install the binary:

$ cargo install evcxr_repl

And start the REPL:

$ evcxr  
Welcome to evcxr. For help, type :help
>> 

Usage information

Evcxr is both a REPL and a Jupyter kernel. See Evcxr common usage for usage information that is common to both.

Manual Installation

You can install the REPL manually with git:

$ cargo install --force --git https://github.com/google/evcxr.git evcxr_repl

Similar projects

  • irust. Looks to have quite a sophisticated command line interface. If you don't need variable preservation, this is probably worth checking out.
  • cargo-eval Not interactive, but it gives you a quick way to evaluate Rust code from the command line and/or scripts.
  • rusti. Deprecated since 2019. Also, rusti requires a nightly compiler from 2016 and doesn't appear to persist variable values.
  • Papyrus. Looks like it's no longer maintained.

Dependencies

~28MB
~600K SLoC