Skip to content

Commit 7f57a0e

Browse files
committed
Core
1 parent 35c2637 commit 7f57a0e

9 files changed

Lines changed: 19 additions & 18 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ Very helpful in this situation will be logs from czkawka run with RUST_LOG envir
3131
```
3232

3333
**System**
34-
<!-- OS and Czkawka/Krokiet version, you can just copy from logs, if you run app from terminal. -->
34+
<!-- OS and Czkawka/Krokiet version, you can just copy from logs, if you run app from terminal or find it in logs file. -->
3535
<!-- Example of logs: -->
3636
<!-- Czkawka gtk version: 9.0.0, debug mode, rust 1.85.0 (2025-02-17), os Ubuntu 24.10.0 [x86_64 64-bit], 24 cpu/threads, features(1): [fast_image_resize], app cpu version: [x86-64-v3 (AVX2) or x86-64-v4 (AVX-512)], os cpu version: [x86-64-v4 (AVX-512)] !-->
37-
37+
<!-- Please do not report feature request for Gtk Czkawka gui, because it is in maintenance mode. -->
3838

3939
- Czkawka/Krokiet version: <!-- e.g. 9.0.0 cli/gui -->
4040
- OS version: <!-- e.g Ubuntu 22.04, Windows 11, Mac 15.1 ARM -->

czkawka_core/i18n/en/czkawka_core.ftl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ core_directory_unable_to_get_device_id = Directories: Unable to get device id fr
2727
2828
core_ffmpeg_not_found = Cannot find proper installation of FFmpeg
2929
core_ffmpeg_not_found_windows = Be sure that ffmpeg.exe and ffprobe.exe are available in PATH or are put directly to same folder where is app executable
30-
core_ffmpeg_missing_in_snap = Similar Videos don't work currently with snap, if you want help look at - { $url }
3130
3231
core_saving_to_cache = Saved to file { $number } cache entries
3332
core_loading_from_cache = Loaded from cache { $number } entries

czkawka_core/src/common.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ pub fn create_crash_message(library_name: &str, file_path: &str, home_library_ur
503503
)
504504
}
505505

506+
#[allow(clippy::string_slice)]
506507
pub fn regex_check(expression_item: &SingleExcludedItem, directory_name: &str) -> bool {
507508
if expression_item.expression_splits.is_empty() {
508509
return true;
@@ -546,6 +547,7 @@ pub fn regex_check(expression_item: &SingleExcludedItem, directory_name: &str) -
546547
true
547548
}
548549

550+
#[allow(clippy::string_slice)] // Is in char boundary
549551
pub fn normalize_windows_path(path_to_change: impl AsRef<Path>) -> PathBuf {
550552
let path = path_to_change.as_ref();
551553

czkawka_core/src/common_cache.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ use crate::common_traits::ResultEntry;
1818
use crate::tools::duplicate::HashType;
1919
use crate::tools::similar_images::{convert_algorithm_to_string, convert_filters_to_string};
2020

21-
const CACHE_VERSION: &str = "70";
22-
const CACHE_DUPLICATE_VERSION: &str = "90";
21+
const CACHE_VERSION: &str = "100";
22+
const CACHE_DUPLICATE_VERSION: &str = "100";
2323
#[cfg(feature = "fast_image_resize")]
24-
const CACHE_IMAGE_VERSION: &str = "90_fast_resize";
24+
const CACHE_IMAGE_VERSION: &str = "100_fast_resize";
2525
#[cfg(not(feature = "fast_image_resize"))]
26-
const CACHE_IMAGE_VERSION: &str = "90_image_rs_resize";
27-
const CACHE_VIDEO_VERSION: &str = "90";
26+
const CACHE_IMAGE_VERSION: &str = "100_image_rs_resize";
27+
const CACHE_VIDEO_VERSION: &str = "100";
2828

2929
const MEMORY_LIMIT: u64 = 4 * 1024 * 1024 * 1024;
3030

czkawka_core/src/common_extensions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ impl Extensions {
6767
messages
6868
}
6969

70+
#[allow(clippy::string_slice)] // Valid, because we address go to dot, which is known ascii character
7071
pub fn check_if_entry_have_valid_extension(&self, entry_data: &DirEntry) -> bool {
7172
if self.allowed_extensions_hashset.is_empty() && self.excluded_extensions_hashset.is_empty() {
7273
return true;

czkawka_core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#![warn(clippy::print_stderr)]
77
#![warn(clippy::print_stdout)]
88
#![warn(clippy::dbg_macro)]
9+
#![warn(clippy::string_slice)]
910

1011
#[macro_use]
1112
extern crate bitflags;

czkawka_core/src/tools/broken_files.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ impl PrintResults for BrokenFiles {
452452
}
453453
}
454454

455+
#[allow(clippy::string_slice)] // Valid, because we address go to dot, which is known ascii character
455456
fn check_extension_availability(
456457
full_name: &Path,
457458
images_extensions: &HashSet<&&'static str>,
@@ -500,6 +501,7 @@ fn unpack_pdf_error(e: PdfError) -> PdfError {
500501
}
501502
}
502503

504+
#[allow(clippy::string_slice)] // Safe slicing
503505
fn validate_pdf_error(file_entry: &mut BrokenEntry, e: PdfError) -> PdfError {
504506
let mut error_string = e.to_string();
505507
// Workaround for strange error message https://github.com/qarmin/czkawka/issues/898

czkawka_core/src/tools/similar_videos.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,6 @@ impl SimilarVideos {
120120
self.common_data.text_messages.errors.push(flc!("core_ffmpeg_not_found"));
121121
#[cfg(target_os = "windows")]
122122
self.common_data.text_messages.errors.push(flc!("core_ffmpeg_not_found_windows"));
123-
#[cfg(target_os = "linux")]
124-
self.common_data
125-
.text_messages
126-
.errors
127-
.push(flc!("core_ffmpeg_missing_in_snap", url = "https://github.com/snapcrafters/ffmpeg/issues/73"));
128123
} else {
129124
self.prepare_items();
130125
self.common_data.use_reference_folders = !self.common_data.directories.reference_directories.is_empty();

czkawka_gui/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Czkawka GUI is a graphical user interface for Czkawka Core written with GTK 4.
44

55
![Screenshot from 2023-11-26 12-43-32](https://github.com/qarmin/czkawka/assets/41945903/722ed490-0be1-4dac-bcfc-182a4d0787dc)
66

7+
## Maintenance mode
8+
9+
Czkawka Gtk is currently in maintenance mode.
10+
While no new features will be added (at least by me), bug fixes and compatibility updates with the Czkawka core package will continue to be provided.
11+
Active development is now focused on the Krokiet GUI.
12+
713
## Requirements
814

915
Requirements depend on your platform.
@@ -18,11 +24,6 @@ Additional features like heif, libraw, libavif require additional libraries to b
1824

1925
Ubuntu - `sudo apt install libgtk-4-bin libheif1 libraw-bin ffmpeg -y`
2026

21-
#### Snap -
22-
23-
none - all needed libraries are bundled in
24-
snap [except ffmpeg](https://github.com/snapcrafters/ffmpeg/issues/73) - https://snapcraft.io/czkawka
25-
2627
#### Flatpak
2728

2829
none - all needed libraries are bundled - https://flathub.org/apps/com.github.qarmin.czkawka

0 commit comments

Comments
 (0)