Commit Graph

25 Commits

Author SHA1 Message Date
Lynne Megido fc45376673
updated copyright years, fixed reuse compliance
somehow i had listed the license as LGPL 3 instead of GPL 3 in all the reuse headers, and never noticed... 0uo
2022-01-23 03:10:17 +10:00
Lynne Megido b72ac443b1
cargo update, minor changes 2021-12-17 10:05:04 +10:00
Lynne Megido b6c2d75bdb
clippy: replace deref() with &*, remove into_iter 2021-11-25 08:45:20 +10:00
Lynne Megido 33f4eb4135
replace occurrences of "mimetype" w/ "MIME type" 2021-11-25 06:29:27 +10:00
Lynne Megido ec10b58482
reorganise files.rs, use lazy Mimes in mime_type 2021-11-25 06:26:57 +10:00
Lynne Megido 667ee440e0
use parking_lot's rwlock, cargo update 2021-11-23 08:38:43 +10:00
Lynne Megido 28aa3ad783
updated formatting options 2021-11-06 01:30:34 +10:00
Lynne Megido 855211f458
clean up windows hidden file code 2021-11-06 01:11:09 +10:00
Lynne Megido c0d8105731
report files renamed/skipped/failed in --fix mode 2021-10-13 23:53:55 +10:00
Lynne Megido 480acf515f
cleanup 2021-10-06 02:37:30 +10:00
Lynne Megido ce79cf14ba
licensing stuff via reuse tool 2021-10-06 00:24:08 +10:00
Lynne Megido 955f0e1510
litl bit more testing 2021-10-05 04:47:33 +10:00
Lynne Megido 47c55ae61e
bumped MSRV to 1.48.0, minor improvements
- this is the rust version that debian stable (buster) currently has, so that's nice
- now we can use `const fn`s in more places, hooray
- smartstring is no longer outdated, hooray
- bitflags is no longer outdated, hooray
- mime_type in files.rs is now a bit smarter about not reading more than it has to, hooray
- removed some redundant clippy lints, hooray
- added a teensy smidgen more documentation, hooray
2021-10-05 02:12:16 +10:00
Lynne Megido c30aba35fd
fix broken multi-threaded scan_from_walkdir
i don't fully understand *why* this was broken but... it was
2021-10-05 01:45:18 +10:00
Lynne Megido c4fabbc0f4
refactoring, initial work on --fix feature 2021-10-04 20:22:15 +10:00
Lynne Megido 4c6163296c
flat_map_iter is 11% faster than flat_map 0uo 2021-09-25 19:55:32 +10:00
Lynne Megido 5e17e4efda
improved multithreading behaviour, & a new flag!
`-j`/`--jobs` can be used to manually set the number of threads to use for scanning files. additionally, fif won't bother with multi-threaded scanning when there are less than 32 files to scan.
2021-09-25 18:55:50 +10:00
Lynne Megido 741048839c
replace remaining OnceCells w/ Lazys, simplifying
i prefer Lazy because it simplifies initialisation by a lot, allowing for the removal of stuff like `init_db()` and the `clap_version()` functions
2021-09-25 00:54:52 +10:00
Lynne Megido c2e6738f6b
use Lazy instead of OnceCell for MIMEDB 2021-09-24 23:53:02 +10:00
Lynne Megido 97b0a6edaa
replace cached dep with custom hashmap thing
i benchmarked it with hyperfine and in terms of performance it's pretty much identical, with a slight (fraction of a percent) advantage to my implementation
2021-09-24 22:05:12 +10:00
Lynne Megido 8a7cbca461
cargo fmt, rearranging use statements
by setting `group_imports = "StdExternalCrate"` in `rustfmt.toml`, cargo fmt/rustfmt rearranges your use statements into three groups:
- std/core/alloc,
- followed by external crates,
- followed by self/super/crate
2021-09-24 18:11:25 +10:00
Lynne Megido 2884f9fe4c
use SmartString properly 2021-08-28 18:21:53 +10:00
Lynne Megido fa49dd9fb5
merged inspectors module into files 2021-08-28 18:09:15 +10:00
Lynne Megido fb81f26ff5
cargo fmt 2021-08-28 17:59:04 +10:00
Lynne Megido 557f5132ff
new files module 2021-08-28 17:58:30 +10:00