diff options
| author | Conrad Ludgate <conradludgate@gmail.com> | 2022-04-25 07:13:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-25 07:13:30 +0100 |
| commit | 7f5310a1aa87cb32499e7f50c864fdaa9a82bd53 (patch) | |
| tree | a1c499f3876d92687f71e72076c3a715d9f16798 /atuin-common | |
| parent | Release v0.9.1 (#338) (diff) | |
| download | atuin-7f5310a1aa87cb32499e7f50c864fdaa9a82bd53.zip | |
history list (#340)
Diffstat (limited to 'atuin-common')
| -rw-r--r-- | atuin-common/Cargo.toml | 1 | ||||
| -rw-r--r-- | atuin-common/src/utils.rs | 9 |
2 files changed, 0 insertions, 10 deletions
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() } |
