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
c2e6738f6b
use Lazy instead of OnceCell for MIMEDB
2021-09-24 23:53:02 +10:00
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
3ee8745440
test.py hasn't been testing the json feature 0uo
...
i've had it enabled on the gitlab CI runner, but not in my test.py script that i use for local testing stuff...
2021-09-23 02:34:10 +10:00
2884f9fe4c
use SmartString properly
2021-08-28 18:21:53 +10:00
fa49dd9fb5
merged inspectors module into files
2021-08-28 18:09:15 +10:00
ebf2f152f0
moved string_type mod into lib.rs
2021-08-28 18:00:31 +10:00
fb81f26ff5
cargo fmt
2021-08-28 17:59:04 +10:00
557f5132ff
new files module
2021-08-28 17:58:30 +10:00
d625fef106
split fif into lib and bin
2021-08-28 17:54:01 +10:00
0404cff8b7
release v0.3.4 🥳
2021-08-07 00:42:07 +10:00
ddde6acdd6
ignore_unknown_exts flag, slightly more testing
2021-08-07 00:19:30 +10:00
b48b8d5a65
new-mime-guess update necessitated minor changes
2021-08-06 23:33:42 +10:00
c3adaea88c
a minor multitude of meager modifications
...
- clippy.sh now works if you're a weirdo with spaces in their $HOME path
- a """performance optimisation""" to utils.rs so minor that i would be surprised if it saved the world one microwatt of electricity over my entire lifespan
- cargo update
- removed useless extension_from_path function
2021-08-01 01:44:17 +10:00
59c87a3729
minor refactoring to make formats.rs less icky
2021-07-24 16:21:20 +10:00
0d034a5c4b
minor logging changes
...
logs use abbreviated level names:
[D] example
instead of
[DEBUG] example
also, you can now use FIF_LOG instead of RUST_LOG
2021-07-01 18:52:53 +10:00
4f78d93975
code cleanup
2021-06-18 15:36:05 +10:00
3b731a7c61
added --canonical-paths flag
...
Findings now takes a PathBuf instead of a reference to a Path but there's no noticeable performance change
2021-06-18 15:17:30 +10:00
1ecc6e6c6e
semicolonic cleanse
2021-06-14 16:53:41 +10:00
ca5773c167
only test json if the feature's enabled 0uo
2021-05-10 09:44:03 +10:00
8341c4aaf7
rename dirs
parameter to dir
2021-05-09 00:23:03 +10:00
81347a7658
mime_extension_lookup takes essence_str directly, videos aliases to video
continuous-integration/drone/push Build is passing
2021-05-08 00:32:44 +10:00
0c0d3f12ea
new and improved rustfmt
2021-05-06 09:06:05 +10:00
b93e111357
added JSON output
2021-05-06 08:57:42 +10:00
774e72423f
test powershell output too
2021-04-30 19:11:24 +10:00
beebbbbb3b
replace fastrand dep with rand, rustfmt
2021-04-29 17:08:56 +10:00
090e4adafe
release v0.3.0!! \0u0/
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-04-28 23:21:27 +10:00
a05af12352
fif now outputs the dir it was run from
...
- refactor Format function signatures to be more uniform
- add Shell and Bash aliases for Sh
2021-04-28 21:27:06 +10:00
cb6e111f16
more comprehensive ext sets, link text/xml and application/xml, remove silly Powershell/PowerShell hack
2021-04-28 19:33:42 +10:00
4f5914ed75
-E and -X can now take multiple sets
2021-04-28 18:10:34 +10:00
d578efa7a4
rename videos set to video, multiple exts can be specified with multiple -e
flags
2021-04-28 16:44:29 +10:00
22f1f280d7
added -X
for excluding sets of extensions. -X
is to -E
as -x
is to -e
.
2021-04-28 16:16:32 +10:00
fc51f8128a
rustfmt
2021-04-27 20:26:01 +10:00
7e3efbed5c
added exclude flag for excluding extensions
continuous-integration/drone/push Build is passing
2021-04-27 20:25:41 +10:00
889b2e2316
move ExtensionSet stuff into parameters.rs
2021-04-26 22:17:57 +10:00
d6974b4959
writables!, windows newlines, sorted changelog, always quote paths
continuous-integration/drone/push Build is passing
2021-04-26 20:19:58 +10:00
dc2ac7b002
reformatting/reordering
2021-04-20 15:20:10 +10:00
e7637013eb
documented and cleaned up tests, renamed "Script" to "Shell", etc
continuous-integration/drone/push Build is passing
2021-04-14 18:25:46 +10:00
d54cc8d6da
added text extension set, more test coverage, cargo update
continuous-integration/drone/push Build is passing
2021-04-08 23:33:33 +10:00
fb67c11eb6
add option for following symlinks, make extensions optional, new version!!
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-04-04 23:52:16 +10:00
25c9efa2f1
fixed compilation on some obscurish architectures (e.g. powerpc), more clippy lints
2021-04-03 03:52:28 +10:00
7115692f9d
fixed tests
continuous-integration/drone/push Build is passing
2021-03-26 05:11:21 +10:00
129aa83ade
lots of stuff! and a version bump!! 0u0
...
continuous-integration/drone/tag Build is passing
- extension_from_path now returns Option<&OsStr>
- two new tests
- Findings uses a Path instead of a PathBuf, reducing allocations
- some unnecessary stuff removed, thanks clippy
- that is all
2021-03-26 04:46:07 +10:00
87dab7284f
test on alpine, clippy & rustfmt
continuous-integration/drone/push Build is failing
2021-03-12 03:44:31 +10:00
e3af10cf5b
replaced some pathbufs with paths, made it actually compile and work 0uo
continuous-integration/drone/push Build is passing
2021-03-12 03:26:35 +10:00
8a152d4118
new option for scanning extensionless files, nicer #[cfg]s, -s no longer skips hidden root dir...
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-03-03 01:12:29 +10:00
5907309689
renamed modules in accordance with https://rust-lang.github.io/api-guidelines/naming.html
2021-03-01 19:21:00 +10:00
31aaa80701
documentation!!! ≥50% coverage!!! wow!!!!!
2021-03-01 00:06:05 +10:00
67fb03821d
integration test for arg parsing, minor shuffling around of things
continuous-integration/drone/push Build is passing
2021-02-28 22:17:26 +10:00