~whynothugo/shotman

cf92a600633abe2096c7b9723f93863afca43ee3 — Hugo Osvaldo Barrera 3 months ago 4785474
Replace futures with futures-channel

The latter is one of many dependencies of the former, and I'm only using
a single type from futures-channel. This trims the dependency tree.
3 files changed, 4 insertions(+), 59 deletions(-)

M Cargo.lock
M Cargo.toml
M src/main.rs
M Cargo.lock => Cargo.lock +1 -57
@@ 304,27 304,12 @@ dependencies = [
]

[[package]]
name = "futures"
version = "0.3.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40"
dependencies = [
 "futures-channel",
 "futures-core",
 "futures-io",
 "futures-sink",
 "futures-task",
 "futures-util",
]

[[package]]
name = "futures-channel"
version = "0.3.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2"
dependencies = [
 "futures-core",
 "futures-sink",
]

[[package]]


@@ 334,41 319,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c"

[[package]]
name = "futures-io"
version = "0.3.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964"

[[package]]
name = "futures-sink"
version = "0.3.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e"

[[package]]
name = "futures-task"
version = "0.3.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65"

[[package]]
name = "futures-util"
version = "0.3.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533"
dependencies = [
 "futures-channel",
 "futures-core",
 "futures-io",
 "futures-sink",
 "futures-task",
 "memchr",
 "pin-project-lite",
 "pin-utils",
 "slab",
]

[[package]]
name = "heck"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"


@@ 527,12 477,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58"

[[package]]
name = "pin-utils"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"

[[package]]
name = "pkg-config"
version = "0.3.27"
source = "registry+https://github.com/rust-lang/crates.io-index"


@@ 656,7 600,7 @@ dependencies = [
 "calloop",
 "calloop-wayland-source",
 "clap",
 "futures",
 "futures-channel",
 "itertools",
 "log",
 "memmap2 0.9.0",

M Cargo.toml => Cargo.toml +1 -1
@@ 44,7 44,7 @@ clap = { version = "4.0.0", features = ["derive", "env"] }
serde = { version = ">= 1.0.145, <= 1.0.171", features = ["derive"] }
serde_json = "1.0.85"
nom = "7.1.1"
futures = { version = "0.3.25", default-features = false, features = ["std"] }
futures-channel = { version = "0.3.25", default-features = false, features = ["std"] }
calloop = { version = "0.12.3", features = ["executor"] }
time = { version = "0.3.20", default-features = false, features = ["formatting", "local-offset", "macros"] }
calloop-wayland-source = "0.2.0"

M src/main.rs => src/main.rs +2 -1
@@ 16,7 16,8 @@ use calloop::LoopHandle;
use calloop_wayland_source::WaylandSource;
use clap::Parser;
use cli::{Cli, RequestedTarget};
use futures::channel::oneshot::{self, Canceled};
use futures_channel::oneshot::{self, Canceled};

use log::{debug, error, info, trace, warn};
use paths::screenshot_filepath;
use rustix::fs::{fcntl_getfl, fcntl_setfl, OFlags};