Skip to content

Commit

Permalink
deps: use futures_lite instead of smol
Browse files Browse the repository at this point in the history
Not a huge change but it trims off size of final binary and smol just reexports it anyways
  • Loading branch information
pombadev committed Feb 21, 2022
1 parent 09e649c commit 3ec79b5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ikill.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use futures_lite::StreamExt;
use heim::process::processes;
use skim::prelude::*;
use smol::stream::StreamExt;

struct SelectedProcess {
name: String,
Expand Down
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use std::{env, process};

use futures_lite::future;

mod ikill;

const USAGE: &str = "
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 3ec79b5

Please sign in to comment.