From 38ec32d5de688f01879f811fd2911038490c00a9 Mon Sep 17 00:00:00 2001 From: Andrii Dokhniak Date: Sun, 28 Jul 2024 17:30:07 +0200 Subject: [PATCH] Added tempdir and include_dir packages --- Cargo.lock | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 4 ++- 2 files changed, 86 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index d0a8bdca..02e81e5d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -280,6 +280,12 @@ dependencies = [ "winapi", ] +[[package]] +name = "fuchsia-cprng" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" + [[package]] name = "hashbrown" version = "0.14.5" @@ -319,6 +325,25 @@ dependencies = [ "cc", ] +[[package]] +name = "include_dir" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "923d117408f1e49d914f1a379a309cffe4f18c05cf4e3d12e613a15fc81bd0dd" +dependencies = [ + "include_dir_macros", +] + +[[package]] +name = "include_dir_macros" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cab85a7ed0bd5f0e76d93846e0147172bed2e2d3f859bcc33a8d9699cad1a75" +dependencies = [ + "proc-macro2", + "quote", +] + [[package]] name = "ioctl-rs" version = "0.1.6" @@ -525,6 +550,34 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "rand" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "552840b97013b1a26992c11eac34bdd778e464601a4c2054b5f0bff7c6761293" +dependencies = [ + "fuchsia-cprng", + "libc", + "rand_core 0.3.1", + "rdrand", + "winapi", +] + +[[package]] +name = "rand_core" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b" +dependencies = [ + "rand_core 0.4.2", +] + +[[package]] +name = "rand_core" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc" + [[package]] name = "ratatui" version = "0.27.0" @@ -546,6 +599,15 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "rdrand" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2" +dependencies = [ + "rand_core 0.3.1", +] + [[package]] name = "redox_syscall" version = "0.5.1" @@ -555,6 +617,15 @@ dependencies = [ "bitflags 2.5.0", ] +[[package]] +name = "remove_dir_all" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" +dependencies = [ + "winapi", +] + [[package]] name = "rustversion" version = "1.0.17" @@ -722,6 +793,16 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "tempdir" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15f2b5fb00ccdf689e0149d1b1b3c03fead81c2b37735d812fa8bddbbf41b6d8" +dependencies = [ + "rand", + "remove_dir_all", +] + [[package]] name = "termios" version = "0.2.2" @@ -759,9 +840,11 @@ dependencies = [ "clap", "crossterm", "ego-tree", + "include_dir", "oneshot", "portable-pty", "ratatui", + "tempdir", "tui-term", ] diff --git a/Cargo.toml b/Cargo.toml index 32876ac6..fa2dffae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,9 @@ oneshot = "0.1.8" portable-pty = "0.8.1" ratatui = "0.27.0" tui-term = "0.1.12" +include_dir = "0.7.4" +tempdir = "0.3.7" [[bin]] name = "linutil" -path = "src/main.rs" \ No newline at end of file +path = "src/main.rs"