c2e6738f6b
use Lazy instead of OnceCell for MIMEDB
2021-09-24 23:53:02 +10:00
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
3d41183f1c
move license to the end of --help
output
2021-09-24 18:12:27 +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
afa2bb8784
is it "an str" (ess-tee-arh) or "a str" (stir)?
2021-09-23 02:09:57 +10:00
043e0972c5
include git commit SHA in --version
output
2021-09-23 02:07:18 +10:00
a800be63f7
use SmartStrings in more places
2021-09-23 01:33:41 +10:00
bddd6caeb2
format
2021-09-23 01:21:15 +10:00
74ae55ac52
AIFF support w/ infer backend
2021-09-23 01:19:56 +10:00
7c36061e03
finish the cleanup job started by #59c87a37
...
somehow i forgot to remove all the { unreachable!() } clutter which was one of the main reasons i did the refactor in the first place... 0uo
2021-09-23 01:03:20 +10:00
88b5070a03
remove unneeded into()
2021-08-31 19:15:54 +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
1f46bef10b
slightly nicer JSON write_all
2021-08-25 15:44:21 +10:00
a2ce336fe7
use unstable sort
2021-08-25 15:26:41 +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
e511d215be
minor bash/pwsh output changes
...
- bash now uses a heredoc to ensure that cheeky filenames containing linebreaks don't escape the echo string
- powershell rename-item now has the verbose flag that i didn't know existed
- there is now a newline between the error and successful output lines
2021-06-18 17:42:16 +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
d0a6e918cc
block compilation if both backends are enabled
2021-06-14 18:23:49 +10:00
ec4ad77136
donut repeat yourself
2021-06-14 17:54:11 +10:00
bd1a2a3e3a
print some more handy info in trace logs
2021-06-14 17:35:47 +10:00
0278fe252e
kode kleanup
2021-06-14 17:08:52 +10:00
6934dd0b5e
move some commonly used constants into a single module
2021-06-14 17:07:38 +10:00
1ecc6e6c6e
semicolonic cleanse
2021-06-14 16:53:41 +10:00
f8dcdf8a3c
nicer output for fif -V
and fif --version
2021-06-14 16:29:41 +10:00
95956f8e30
fixed powershell output format 0u0;
2021-06-13 19:24:21 +10:00
8dac4127e9
added text output format
continuous-integration/drone/push Build is passing
2021-06-07 15:21:47 +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
64efb0de27
merge webUI changes, fmt
continuous-integration/drone/push Build is passing
2021-05-06 09:29:20 +10:00
417893cae0
moved ScanError into findings.rs
2021-05-06 09:27:16 +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
a60a19191a
reject lowercase exts bc they don't worky
2021-04-29 17:03:26 +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
4acbcaaa9b
added quietness flag, set default log level to info
2021-04-28 22:20:10 +10:00