From ae6e5c86f5016877754be6d703279991b7afd2ba Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Tue, 7 May 2024 23:42:30 +0200 Subject: [PATCH] prune deps Signed-off-by: Frank Villaro-Dixon --- Cargo.lock | 119 ----------------------------------------------------- Cargo.toml | 3 +- src/hid.rs | 1 - 3 files changed, 1 insertion(+), 122 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index eb28c5a..9682da8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -73,7 +73,6 @@ dependencies = [ "evdev", "evdev-rs", "femtovg", - "gilrs", "glutin", "glutin-winit", "image", @@ -377,40 +376,6 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" -[[package]] -name = "gilrs" -version = "0.10.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b54e5e39844ab5cddaf3bbbdfdc2923a6cb34e36818b95618da4e3f26302c24c" -dependencies = [ - "fnv", - "gilrs-core", - "log", - "uuid", - "vec_map", -] - -[[package]] -name = "gilrs-core" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85c132270a155f2548e67d66e731075c336c39098afc555752f3df8f882c720e" -dependencies = [ - "core-foundation", - "inotify", - "io-kit-sys", - "js-sys", - "libc", - "libudev-sys", - "log", - "nix 0.28.0", - "uuid", - "vec_map", - "wasm-bindgen", - "web-sys", - "windows", -] - [[package]] name = "gl_generator" version = "0.14.0" @@ -534,26 +499,6 @@ dependencies = [ "hashbrown", ] -[[package]] -name = "inotify" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdd168d97690d0b8c412d6b6c10360277f4d7ee495c5d0d5d5fe0854923255cc" -dependencies = [ - "bitflags 1.3.2", - "inotify-sys", - "libc", -] - -[[package]] -name = "inotify-sys" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb" -dependencies = [ - "libc", -] - [[package]] name = "instant" version = "0.1.12" @@ -566,16 +511,6 @@ dependencies = [ "web-sys", ] -[[package]] -name = "io-kit-sys" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "617ee6cf8e3f66f3b4ea67a4058564628cde41901316e19f559e14c7c72c5e7b" -dependencies = [ - "core-foundation-sys", - "mach2", -] - [[package]] name = "jni-sys" version = "0.3.0" @@ -655,16 +590,6 @@ dependencies = [ "redox_syscall 0.4.1", ] -[[package]] -name = "libudev-sys" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c8469b4a23b962c1396b9b451dda50ef5b283e8dd309d69033475fa9b334324" -dependencies = [ - "libc", - "pkg-config", -] - [[package]] name = "log" version = "0.4.21" @@ -677,15 +602,6 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3262e75e648fce39813cb56ac41f3c3e3f65217ebf3844d818d1f9398cfb0dc" -[[package]] -name = "mach2" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b955cdeb2a02b9117f121ce63aa52d08ade45de53e48fe6a38b39c10f6f709" -dependencies = [ - "libc", -] - [[package]] name = "memchr" version = "2.7.2" @@ -1229,12 +1145,6 @@ version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" -[[package]] -name = "uuid" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0" - [[package]] name = "vec_map" version = "0.8.2" @@ -1424,35 +1334,6 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" -[[package]] -name = "windows" -version = "0.54.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9252e5725dbed82865af151df558e754e4a3c2c30818359eb17465f1346a1b49" -dependencies = [ - "windows-core", - "windows-targets 0.52.5", -] - -[[package]] -name = "windows-core" -version = "0.54.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12661b9c89351d684a50a8a643ce5f608e20243b9fb84687800163429f161d65" -dependencies = [ - "windows-result", - "windows-targets 0.52.5", -] - -[[package]] -name = "windows-result" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "749f0da9cc72d82e600d8d2e44cadd0b9eedb9038f71a1c58556ac1c5791813b" -dependencies = [ - "windows-targets 0.52.5", -] - [[package]] name = "windows-sys" version = "0.45.0" diff --git a/Cargo.toml b/Cargo.toml index 3c136a2..c47fdea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,6 @@ winit = "0.28.6" glutin = "0.30.10" glutin-winit = "0.3.0" raw-window-handle = "0.5.0" -gilrs = "0.10.7" evdev = "0.12.1" instant = { version = "0.1", features = ["now"] } @@ -19,4 +18,4 @@ image = { version = "0.24.0", default-features = false, features = [ "png", ] } evdev-rs = "0.6.1" -nix = { version = "0.28.0", features = ["fs"] } +nix = { version = "0.28.0", features = ["event", "fs"] } diff --git a/src/hid.rs b/src/hid.rs index 1d062a0..974380c 100644 --- a/src/hid.rs +++ b/src/hid.rs @@ -1,5 +1,4 @@ use core::panic; -use gilrs::ev; use nix::{ fcntl::{FcntlArg, OFlag}, sys::epoll,