From 81a4071c73c9397b53c51458d697cf81c7a466e8 Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Sat, 18 Oct 2025 14:12:48 +0300 Subject: [PATCH] refactor: replace anyhow with color-eyre --- Cargo.toml | 2 +- cipher-core/Cargo.toml | 1 - cli/Cargo.toml | 2 +- cli/src/main.rs | 3 ++- tui/Cargo.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9234cdc..8780c1b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ members = ["aes", "cipher-core", "cli", "des", "tui"] [workspace.dependencies] aes = { path = "aes" } -anyhow = "1" +color-eyre = "0.6" cipher-core = { path = "cipher-core" } claims = "0.8" des = { path = "des" } diff --git a/cipher-core/Cargo.toml b/cipher-core/Cargo.toml index 42260cf..352a29a 100644 --- a/cipher-core/Cargo.toml +++ b/cipher-core/Cargo.toml @@ -5,7 +5,6 @@ authors = ["Kristofers Solo "] edition = "2024" [dependencies] -anyhow.workspace = true thiserror.workspace = true [lints] diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 595778f..655fe54 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -6,9 +6,9 @@ edition = "2024" [dependencies] aes = { workspace = true, optional = true } -anyhow.workspace = true cipher-core.workspace = true clap = { version = "4.5", features = ["derive"] } +color-eyre.workspace = true des = { workspace = true, optional = true } thiserror.workspace = true diff --git a/cli/src/main.rs b/cli/src/main.rs index e812cce..252676d 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -11,7 +11,8 @@ use crate::{ use cipher_core::BlockCipher; use clap::Parser; -fn main() -> anyhow::Result<()> { +fn main() -> color_eyre::Result<()> { + color_eyre::install()?; let Args { operation, algorithm, diff --git a/tui/Cargo.toml b/tui/Cargo.toml index a3b3f24..a3ee092 100644 --- a/tui/Cargo.toml +++ b/tui/Cargo.toml @@ -6,8 +6,8 @@ edition = "2024" [dependencies] aes = { workspace = true, optional = true } -anyhow.workspace = true cipher-core.workspace = true +color-eyre.workspace = true des = { workspace = true, optional = true } ratatui = "0.29" thiserror.workspace = true