From 7151b4c094632c41854f47e2eafcb15883cb0f97 Mon Sep 17 00:00:00 2001 From: ChristianVisintin Date: Tue, 1 Dec 2020 17:10:13 +0100 Subject: [PATCH] Added lazy_static and regex --- Cargo.lock | 2 ++ Cargo.toml | 2 ++ src/lib.rs | 2 ++ src/main.rs | 1 + 4 files changed, 7 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 39eae08..3387015 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -580,6 +580,8 @@ dependencies = [ "crossterm", "ftp", "getopts", + "lazy_static", + "regex", "rpassword", "ssh2", "tempfile", diff --git a/Cargo.toml b/Cargo.toml index b373a9a..bbd4c96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,6 +26,8 @@ unicode-width = "0.1.7" chrono = "0.4.19" bytesize = "1.0.1" textwrap = "0.12.1" +regex = "1.4.2" +lazy_static = "1.4.0" [target.'cfg(any(unix, macos, linux))'.dependencies] users = "0.11.0" diff --git a/src/lib.rs b/src/lib.rs index 621a363..6c82b9d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,6 +19,8 @@ * */ +#[macro_use] extern crate lazy_static; + pub mod activity_manager; pub mod filetransfer; pub mod fs; diff --git a/src/main.rs b/src/main.rs index f65c9c0..624faa8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,6 +24,7 @@ const TERMSCP_AUTHORS: &'static str = env!("CARGO_PKG_AUTHORS"); // Crates extern crate getopts; +#[macro_use] extern crate lazy_static; extern crate rpassword; // External libs