Crates.io | rsepl |
lib.rs | rsepl |
version | 0.3.1 |
source | src |
created_at | 2019-04-18 14:26:07.787266 |
updated_at | 2024-04-12 09:20:48.540837 |
description | A rust REPL in your crate |
homepage | |
repository | https://github.com/vonforum/cargo-rspl |
max_upload_size | |
id | 128676 |
size | 44,774 |
RsEPL or RsPL is a cargo subcommand to run a Rust REPL inside your crate.
$ cargo new --lib foo
$ cd foo
$ cargo rspl
foo> foo::add(1, 2)
3
Install with cargo:
cargo install rsepl
This adds the cargo-rspl
binary to your ~/.cargo/bin
directory.
$ cargo rspl
Runs either a regular REPL if not in a crate, or a REPL with the crate's dependencies if in a crate.
Access your crate's methods in a REPL - great for quick testing of functions.
Plus, you get to use dependencies like rand
or regex
in the REPL.
Recompiles all previously run lines on every new line, so it's not very fast.
Not as fleshed out as some other REPLs like evcxr
.
All code in this repository is dual-licensed under either:
at your option. This means you can select the license you prefer.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.