proper library setup

This commit is contained in:
Chris Cochrun 2024-11-19 17:44:51 -06:00
parent 5d30ca51ed
commit f630d138cb
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["staticlib"]
name = "crisp"
path = "src/lib.rs"
[dependencies]

View file

@ -11,7 +11,7 @@ pub mod reader;
pub mod types;
use types::*;
pub fn main() -> Result<()> {
fn main() -> Result<()> {
let mut rl = Editor::<(), rustyline::history::DefaultHistory>::new().unwrap();
if rl.load_history(".mal-history").is_err() {
eprintln!("No previous history.");