Crates.io | repl_framework |
lib.rs | repl_framework |
version | 0.3.0 |
source | src |
created_at | 2021-04-10 07:22:15.890757 |
updated_at | 2021-11-11 13:33:24.169828 |
description | A crate to easily create simple repls |
homepage | |
repository | https://github.com/SuKiN-a/repl_framework |
max_upload_size | |
id | 381622 |
size | 21,281 |
An easy to use repl creation library
use repl_framework::Repl;
fn main() -> std::io::Result<()>{
Repl::default().with_function("Hello", hello).run()
}
fn hello(_: &mut (), _: Vec<String>) {
println!("Hello World")
}