Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b1b828f
refactor(MangadexFilters): split mangadex module filter into two
josueBarretogit Jun 23, 2025
5a3234b
Merge PR #185 from split-mangadex-filters-in-two-modules
josueBarretogit Jun 24, 2025
2be8a4a
feat(mangadexFilters): Add From<Filters> implementation for MangadexF…
josueBarretogit Jul 13, 2025
14a6383
refactor(MangadexFilters): add FilterListIter struct to make iteratin…
josueBarretogit Jul 14, 2025
6714f00
feat(MangadexFilters): add cache reader and write for mangadex filters
josueBarretogit Jul 19, 2025
84564da
build(deps): bump the cargo-dependencies group across 1 directory wit…
dependabot[bot] Jul 21, 2025
6991fa3
refactor(general): remove unused imports, and make filtersCache generic
josueBarretogit Jul 23, 2025
c6f1d85
fix(mangadexFilters): save author and artists in filter cache
josueBarretogit Jul 24, 2025
3aaf079
docs(filtersCache): add documentation
josueBarretogit Jul 24, 2025
97dca35
Merge PR #189 feat/save_filters_used_mangadex
josueBarretogit Jul 24, 2025
3038016
feat(Database): add functions to delete manga from history
josueBarretogit Aug 7, 2025
39cf649
docs(Database): add more documentation for database module
josueBarretogit Aug 9, 2025
3813920
refactor(App): Make general widget modalError
josueBarretogit Aug 10, 2025
d504d47
feat(Feed): add modal to ask wether or not to delete all manga histor…
josueBarretogit Aug 10, 2025
e85d20d
feat(Feed): add docs
josueBarretogit Aug 10, 2025
7695949
Merge PR #193 78-remove-a-title-from-planning-to-read
josueBarretogit Aug 10, 2025
13ba0f5
feat(Benchmarks): introduce benchmarks
josueBarretogit Aug 10, 2025
a7f53bc
build(Cargo.toml): update dependencies
josueBarretogit Aug 10, 2025
9684324
Merge PR #194 feat/introducing-benchmarks
josueBarretogit Aug 10, 2025
c6e97a1
Merge PR #190 dependabot/cargo/cargo-dependencies-b4cc0679f4
josueBarretogit Aug 10, 2025
918dfd3
fix(Database): fix deleteing history from the corresponding sections
josueBarretogit Aug 10, 2025
efeddd3
refactor(Feed): write warning message in a Paragraph
josueBarretogit Aug 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
764 changes: 265 additions & 499 deletions Cargo.lock

Large diffs are not rendered by default.

30 changes: 18 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,28 @@ exclude = [
ratatui = { version = "0.29.0", features = ["all-widgets", "palette", "unstable-widget-ref"] }
ratatui-image = { version = "1.0.5", features = ["rustix"]}
throbber-widgets-tui = "0.8.0"
tui-input = { version = "0.12.0", features = ["crossterm"], default-features = false}
tui-input = { version = "0.14.0", features = ["crossterm"], default-features = false}
tui-widget-list = "0.13.0"

crossterm = { version = "0.29.0", features = ["event-stream"] }
directories = "6.0.0"
image = "0.25.4"
reqwest = { version = "0.12.20", features = ["json", "native-tls-alpn", "cookies", "http2", "gzip", "deflate"] }
tokio = { version = "1.44.2", features = ["full"] }
reqwest = { version = "0.12.22", features = ["json", "native-tls-alpn", "cookies", "http2", "gzip", "deflate"] }
tokio = { version = "1.46.1", features = ["full"] }
serde = { version = "1.0.219", features = ["derive"] }
strum = "0.26.3"
strum_macros = "0.26"
color-eyre = "0.6.2"
color-eyre = "0.6.5"
futures = "0.3.31"
bytes = { version = "1", features = ["serde"] }
serde_json = "1.0.140"
serde_json = "1.0.141"
once_cell = "1.21.1"
chrono = "0.4.40"
chrono = "0.4.41"
open = "5"
rusqlite = { version = "0.35.0", features = ["bundled"] }
clap = { version = "4.5.37", features = ["derive", "cargo"] }
zip = "4.0.0"
toml = "0.8.20"
rusqlite = { version = "0.37.0", features = ["bundled"] }
clap = { version = "4.5.41", features = ["derive", "cargo"] }
zip = "4.3.0"
toml = "0.9.2"
epub-builder = "0.8.0"
http = "1.3"
keyring = { version = "3", features = ["apple-native", "windows-native", "sync-secret-service"] }
Expand All @@ -51,20 +51,26 @@ pretty_env_logger = "0.5"
scraper = "0.23.1"
regex = "1.11.1"
lopdf = "0.36.0"
flate2 = "1.1.1"
flate2 = "1.1.2"

[dev-dependencies]
httpmock = "0.7.0-rc.1"
pretty_assertions = "1.4.0"
rusty-hook = "0.11.2"
fake = "4.3.0"
uuid = { version = "1.16.0", features = ["v4", "fast-rng"] }
uuid = { version = "1.17.0", features = ["v4", "fast-rng"] }
http = "1.3"
criterion = { version = "0.5", features = ["html_reports"] }

[[bench]]
name = "utils"
harness = false

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.59.0", features = ["Win32_Foundation", "Win32_System_Console", "Win32_UI_HiDpi"]}

[profile.release]
codegen-units = 1
lto = "fat"
opt-level = "z"
strip = "debuginfo"
13 changes: 13 additions & 0 deletions benches/utils.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use criterion::{BenchmarkId, Criterion, criterion_group, criterion_main};
use manga_tui::SanitizedFilename;

fn sanitize_filename(c: &mut Criterion) {
let example = "some / title :";

c.bench_with_input(BenchmarkId::new("sanitized string parsing", example), &example, |b, &ex| {
b.iter(|| SanitizedFilename::new(ex));
});
}

criterion_group!(benches, sanitize_filename);
criterion_main!(benches);
2 changes: 1 addition & 1 deletion src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use once_cell::sync::Lazy;
use strum::{Display, EnumIter, IntoEnumIterator};

use self::error_log::create_error_logs_files;
use crate::config::{MangaTuiConfig, build_config_file};
use crate::config::build_config_file;
use crate::logger::ILogger;

pub mod cache;
Expand Down
3 changes: 1 addition & 2 deletions src/backend/cache.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::error::Error;
use std::fmt::{Debug, Display};
use std::time::Duration;
use std::fmt::Debug;

pub mod in_memory;

Expand Down
3 changes: 1 addition & 2 deletions src/backend/cache/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,12 @@ impl Cacher for InMemoryCache {
#[cfg(test)]
mod tests {
use std::error::Error;
use std::thread::sleep;
use std::time::{Duration, Instant};

use pretty_assertions::assert_eq;

use super::*;
use crate::backend::cache::{self, Entry, InsertEntry};
use crate::backend::cache::{Entry, InsertEntry};

#[test]
fn it_saves_and_retrieves_data() -> Result<(), Box<dyn Error>> {
Expand Down
Loading
Loading