From 7f5310a1aa87cb32499e7f50c864fdaa9a82bd53 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Mon, 25 Apr 2022 07:13:30 +0100 Subject: history list (#340) --- atuin-common/Cargo.toml | 1 - atuin-common/src/utils.rs | 9 --------- 2 files changed, 10 deletions(-) (limited to 'atuin-common') diff --git a/atuin-common/Cargo.toml b/atuin-common/Cargo.toml index 67e78f39..66408779 100644 --- a/atuin-common/Cargo.toml +++ b/atuin-common/Cargo.toml @@ -11,7 +11,6 @@ repository = "https://github.com/ellie/atuin" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rust-crypto = "^0.2" chrono = { version = "0.4", features = ["serde"] } serde = { version = "1.0.126", features = ["derive"] } uuid = { version = "1.0", features = ["v4"] } diff --git a/atuin-common/src/utils.rs b/atuin-common/src/utils.rs index 3e3e645b..59545a26 100644 --- a/atuin-common/src/utils.rs +++ b/atuin-common/src/utils.rs @@ -3,15 +3,6 @@ use std::path::PathBuf; use chrono::NaiveDate; use uuid::Uuid; -pub fn hash_str(string: &str) -> String { - use crypto::digest::Digest; - use crypto::sha2::Sha256; - let mut hasher = Sha256::new(); - hasher.input_str(string); - - hasher.result_str() -} - pub fn uuid_v4() -> String { Uuid::new_v4().as_simple().to_string() } -- cgit v1.3.1