small software-rendered rust tty
-rw-r--r--Cargo.toml4
-rw-r--r--src/main.rs2
2 files changed, 5 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index c5c94a2..1c5b33d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -26,3 +26,7 @@ debug = 2
opt-level = 3
lto = "thin"
incremental = true
+
+[profile.dev]
+opt-level = 3
+incremental = true
diff --git a/src/main.rs b/src/main.rs
index 4f2245a..b0f907f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -16,7 +16,7 @@ use std::os::fd::{AsFd, AsRawFd, BorrowedFd, OwnedFd};
use std::process::{Command, exit};
use std::sync::mpsc;
use std::thread::sleep;
-use std::time::Duration;
+use std::time::{Duration, Instant};
pub mod colors;