Rust crate for easy debug repl?
⚓ Rust 📅 2025-10-05 👤 surdeus 👁️ 7Does anyone know of a crate that implements a simple "turn key" REPL for your rust program?
I'm not finding much. There is evcxr, but that is a REPL for rust itself. Which is not what I'm looking for. And there are various crates like parsers and line editing that can form building blocks if you want to build a full blown shell.
But that isn't what I'm looking for. I'm not trying to build a shell. I don't want to go yak shaving further than I already am.
I have a tool that I want to add a debug REPL for that will be useful during development (the final UI will be different). I just want a turn key solution for basic line editing and maybe history, where I provide "here is a list of my commands". Tab completion etc would be a nice bonus, but isn't required.
If there isn't anything that exactly matches I'm also interested in what building blocks would be the closest to working out of the box, for line-editing+history (no need for persistent history) and a simple parser of the commands (ideally something derive-like, similar to how clap works for command line parsing).
EDIT: Also I'm writing async code, so that is also a consideration.
4 posts - 2 participants
🏷️ Rust_feed