diff --git a/Cargo.lock b/Cargo.lock index 7711109..4a041b6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -848,9 +848,9 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" name = "ikill" version = "1.5.0" dependencies = [ + "futures-lite", "heim", "skim", - "smol", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index d2cb958..d5e882e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,9 @@ repository = "https://github.com/pjmp/ikill" version = "1.5.0" [dependencies] +futures-lite = "1.12.0" heim = {version = "0.1.0-rc.1", default-features = false, features = ["process"]} skim = "0.9.4" -smol = "1.2.5" [profile.release] lto = true diff --git a/src/ikill.rs b/src/ikill.rs index 9234d0d..582f63f 100644 --- a/src/ikill.rs +++ b/src/ikill.rs @@ -1,6 +1,6 @@ +use futures_lite::StreamExt; use heim::process::processes; use skim::prelude::*; -use smol::stream::StreamExt; struct SelectedProcess { name: String, diff --git a/src/main.rs b/src/main.rs index c746fc9..cc9e807 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,7 @@ use std::{env, process}; +use futures_lite::future; + mod ikill; const USAGE: &str = " @@ -28,7 +30,7 @@ For more information try --help } fn main() { - smol::block_on(async { + future::block_on(async { match env::args().nth(1) { None => { if let Err(error) = ikill::run().await {