Commit graph

286 commits

Author SHA1 Message Date
a0396e2e1e
cargo update 2022-01-17 10:25:44 +10:00
9c404f2557 Merge branch 'infer-0.6.0' into 'master'
Update infer to 0.6.0

See merge request Lynnesbian/fif!2
2022-01-17 00:12:19 +00:00
Hannes Braun
c4f0cd8d12
Update infer to 0.6.0 2022-01-15 19:36:38 +01:00
6b821f1e1e
cargo update 2022-01-05 11:36:20 +10:00
8e5ddd8e4a
minor readme changes 2022-01-01 13:35:32 +10:00
c06a7a527a
release v0.5.0 🥳 2022-01-01 13:31:08 +10:00
9aef5d314c
more command line tests, more version info 2022-01-01 13:04:07 +10:00
82232a3c05
more command line tests, more version info 2022-01-01 13:02:27 +10:00
5b920665a2
cargo update, minor changes to version info 2022-01-01 11:55:49 +10:00
b72ac443b1
cargo update, minor changes 2021-12-17 10:05:04 +10:00
b6c2d75bdb
clippy: replace deref() with &*, remove into_iter 2021-11-25 08:45:20 +10:00
65a560d5f4
update new_mime_guess 2021-11-25 08:40:57 +10:00
313afe7cc1
test improvements
- fix tests on big endian 32 bit archs
- condense the recommend_ext test
- also test writablesln!
- general engoodening
2021-11-25 06:40:34 +10:00
33f4eb4135
replace occurrences of "mimetype" w/ "MIME type" 2021-11-25 06:29:27 +10:00
ec10b58482
reorganise files.rs, use lazy Mimes in mime_type 2021-11-25 06:26:57 +10:00
667ee440e0
use parking_lot's rwlock, cargo update 2021-11-23 08:38:43 +10:00
44e14fbfba
updated formatting options 2021-11-06 02:43:08 +10:00
28aa3ad783
updated formatting options 2021-11-06 01:30:34 +10:00
855211f458
clean up windows hidden file code 2021-11-06 01:11:09 +10:00
5df8545906
cargo update, ignore sonarlint 2021-10-28 21:53:28 +10:00
672cc8da90
release v0.4.0 🥳 2021-10-14 00:04:25 +10:00
c0d8105731
report files renamed/skipped/failed in --fix mode 2021-10-13 23:53:55 +10:00
fcaaf283b7
ci improvements c: 2021-10-06 03:11:52 +10:00
36c0e99a92
i wonder if this is enough README badges 2021-10-06 02:54:58 +10:00
480acf515f
cleanup 2021-10-06 02:37:30 +10:00
58d5ac7e75
mostly just formatting 2021-10-06 01:41:08 +10:00
b5ef95b6ef
documentation 2021-10-06 01:33:15 +10:00
6d32beedcc
cleanup 2021-10-06 00:26:04 +10:00
ce79cf14ba
licensing stuff via reuse tool 2021-10-06 00:24:08 +10:00
955f0e1510
litl bit more testing 2021-10-05 04:47:33 +10:00
38ca71cc14
test smartstring::validate(), hooray 2021-10-05 02:13:32 +10:00
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
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
17a784732b
beeg beeg cleanup, set default prompt to error 2021-10-05 00:18:42 +10:00
556ea82a06
added --fix - fif can now rename files itself!
this alone warrants a bump to 0.4.0 imo, and now that i think about it, there's not really much keeping me from calling it 1.0...
i think i'd want to get more tests, and maybe upgrade to clap 3 stable when that happens, before calling it 1.0, though. maybe even get some sort of configuration file...
2021-10-04 23:33:48 +10:00
c4fabbc0f4
refactoring, initial work on --fix feature 2021-10-04 20:22:15 +10:00
451ea3d5d9
cargo fmt, cargo update 2021-10-04 01:00:49 +10:00
3f40c61d6d
better output 0u0 2021-10-04 00:59:20 +10:00
37b9cccc9c
update gitignore 2021-10-02 19:25:35 +10:00
25d8ed64ae
capped help output to 120 chars max width 2021-09-29 23:52:20 +10:00
eb3e650361
removed broken MSI support 0uo 2021-09-29 23:40:57 +10:00
f1982f670e
cargo update 2021-09-29 23:33:03 +10:00
0712bf0a6b
add support for MSI files to infer backend 2021-09-29 23:31:51 +10:00
47d94cf27b
simplify InferDb custom mimetypes
using `buf.starts_with(b"\xAB\xCD")` instead of `buf[0] == 0xAB && buf[1] == 0xCD` is shorter, easier to read, removes the need for the `buf.len() > xyz` check, and actually compiles to (much) less assembly:
https://godbolt.org/z/M7GePGn1T

isn't that just lovely
2021-09-29 23:29:21 +10:00
db80955f24
release v0.3.7 🥳 2021-09-25 20:09:52 +10:00
4c6163296c
flat_map_iter is 11% faster than flat_map 0uo 2021-09-25 19:55:32 +10:00
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
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
0c31277191
new screenshot, minor readme changes 2021-09-25 00:24:01 +10:00
6718f879f7
use Lazy instead of OnceCell for MIMEDB 2021-09-24 23:57:01 +10:00