Crates.io | evcxr_repl |
lib.rs | evcxr_repl |
version | 0.18.0 |
source | src |
created_at | 2018-09-25 10:51:09.93231 |
updated_at | 2024-10-12 06:43:14.414174 |
description | A REPL for Rust |
homepage | |
repository | https://github.com/evcxr/evcxr |
max_upload_size | |
id | 86459 |
size | 126,278 |
A Rust REPL (Read-Eval-Print loop) built using the
evcxr
evaluation context.
Before you can use the REPL, you must download a local copy of Rust's source code:
$ rustup component add rust-src
Once that's done, you have a choice of using pre-built binaries, or building from source.
Pre-built binaries are available from the Releases page. These are currently built for Linux, Mac and Windows. In each case they are built with the latest version of each operating system. In the case of Linux, they're built on the latest Ubuntu. If your version of libc is different, they might not work, in which case you'll need to build yourself. See below.
If you can't, or don't want to use the pre-built binaries, you can build from source.
Make sure you've got a recent version of rust installed. Evcxr's dependencies often make use of new Rust features shortly after they're stabilized, so it's not uncommon that the latest release of Evcxr will end up requiring the latest version of rustc.
Now you can go ahead and install the binary:
$ cargo install --locked evcxr_repl
And start the REPL:
$ evcxr
Welcome to evcxr. For help, type :help
>>
Evcxr supports two modes of tab completion:
Evcxr is both a REPL and a Jupyter kernel. See Evcxr common usage for usage information that is common to both.
You can install the REPL manually with git:
$ cargo install --force --git https://github.com/evcxr/evcxr.git evcxr_repl