Nicolas Marier
7ea0c5e80a
fix(finder): import std::fs with the regex feature
...
The import was necessary when using the regex feature.
2021-07-30 18:05:03 -04:00
Harry Fei
55e3cf3bb6
bump version to 4.2.1
2021-07-29 20:49:42 +08:00
Harry Fei
97a4859335
remove unused line
2021-07-29 20:47:03 +08:00
Harry Fei
d32d012686
bump version to 4.2.0
2021-07-29 20:44:38 +08:00
Harry Fei
32c08ce671
Merge pull request #40 from marier-nico/master
...
Allow searching with regular expressions
2021-07-27 22:54:08 +08:00
Nicolas Marier
429b7c1061
feat(lib): allow searching with regular expressions
...
Fixes : #39
2021-07-25 13:12:49 -04:00
Chris Morgan
63303e58f3
Windows: various performance optimisations
...
• Parse PATHEXT once only, with the new platform-specific dependency
lazy_static. (If anyone changes PATHEXT in the middle of process
invocation, I don’t even want to *know* what they’re doing.) This
should reduce allocations on subsequent calls by at least 13 on a
typical machine.
• Skip an unnecessary clone of that Vec, and of every item in it.
That’s another dozen or so allocations saved on every call.
• Make has_executable_extension take &[S] instead of &Vec<S>, in line
with accepted Best Practices™. There’s probably no difference in the
compiled artefact, because the optimiser will already have been fixing
it.
• Remove the broken PATHEXT fallback case handling. It was intended to
make it support .exe if PATHEXT was missing or non-Unicode, but due to
using EXE_EXTENSION ("exe") instead of EXE_SUFFIX (".exe"), it
actually matched the .xe extension. I contemplated fixing that and
making it use .unwrap_or_else(|| …) instead of .unwrap_or(…) to save
another allocation, but decided that it was better not to include that
fallback anyway: for PATHEXT to be missing or non-Unicode is a severe
breach of contract, and I doubt Windows would actually work properly;
so there’s no need for such a dubious fallback.
There are still further performance optimisations that can be made, most
notably around performing exact allocations rather than just converting
to a PathBuf and pushing bytes willy-nilly, which may require
reallocation. But this lot is a good start.
2021-07-23 14:29:51 +08:00
Harry Fei
2da8eb6b63
change ci trigger condition
2021-07-23 14:27:18 +08:00
Harry Fei
2c54067bab
bump version to 4.1.0
2021-03-28 17:27:34 +08:00
Harry Fei
72758873f4
Merge pull request #34 from harryfei/actions
...
Add Github actions
2021-03-20 14:07:22 +08:00
Jacob Kiesel
1fa7d45950
Reduce redundancy in actions file
2021-03-17 16:06:18 -06:00
Jacob Kiesel
5ef7277b8f
Fix README badges
2021-03-17 11:16:28 -06:00
Jacob Kiesel
58bac3717d
Remove old CI, fix actions syntax
2021-03-17 11:03:20 -06:00
Jacob Kiesel
ba799a5b53
Upgrade to Rust 2018, closes #28 ( #33 )
...
* Upgrade to Rust 2018, closes #28
* Fix Windows import
Co-authored-by: Jacob Kiesel <jacob.kiesel@vivint.com>
2021-03-17 10:59:33 -06:00
Jacob Kiesel
2845216bc2
Add Github actions
2021-03-17 10:57:12 -06:00
Jacob Kiesel
bf520fbf1f
Fix formatting for CI
2021-03-10 14:11:58 -07:00
Jacob Kiesel
57c08c8885
Merge pull request #27 from Bzomak/remove-thiserror
...
Remove thiserror crate
2021-03-10 11:25:37 -07:00
Milo
e345ef7942
Merge pull request #30 from Xaeroxe/many
...
Add support for finding all binaries with said name on path
2021-03-08 16:52:49 +00:00
Jacob Kiesel
84446f2862
Add support for finding all binaries with said name on path
2021-01-04 15:48:16 -07:00
Robert Horswell
2d4e72aa2e
Remove thiserror crate
...
Manually implement `std::error::Error` and `std::fmt::Display` for the `Error` enum
2020-08-26 19:28:23 +01:00
Harry Fei
3c34de1617
fix build warning
2020-08-15 22:14:22 +08:00
Harry Fei
f79d01ce1d
Merge pull request #26 from Atul9/add-cargofmt-to-travis-config
...
Add cargo fmt to travis build config
2020-08-10 12:28:46 +08:00
Atul Bhosale
fba9ccf6ad
Add cargo fmt to travis build config
2020-08-07 23:38:03 +05:30
Harry Fei
b5ab094027
bump version to 4.0.2
2020-08-04 22:45:34 +08:00
Harry Fei
5dad17ec2f
Merge pull request #25 from charlespierce/windows_symlinks
...
Support symlinked executables on Windows
2020-08-04 22:43:01 +08:00
Charles Pierce
3b9f37a3a0
Support symlinked executables on Windows
2020-07-29 16:35:41 -07:00
Harry Fei
e5039c15d1
bump version to 4.0.1
2020-06-22 23:20:41 +08:00
Harry Fei
209804c363
Merge pull request #23 from fdncred/patch-1
...
Allow checker to support reparsepoints in Windows
2020-06-22 23:12:51 +08:00
Darren Schroeder
8c3bfcac07
removed spaces
2020-06-22 07:34:06 -05:00
Darren Schroeder
d0dcc68ca4
Update checker.rs
2020-06-20 16:04:15 -05:00
Darren Schroeder
37746bd1fa
Updated ExistedChecker to work in multiple OSes
2020-06-18 14:27:41 -05:00
Darren Schroeder
a5d1439631
Allow checker to support reparsepoints in Windows
2020-06-18 09:54:23 -05:00
Harry Fei
1df9b0ed38
bump version to 4.0.0
2020-05-30 20:54:11 +08:00
Harry Fei
e3d86e5ba7
fix clippy warning
2020-05-30 20:53:18 +08:00
Harry Fei
2a3cc8bb8a
Merge pull request #21 from waynr/eliminate-failure
...
replace failure with std::error:Error and thiserror
2020-05-26 22:59:43 +08:00
Wayne Warren
e6e839c4f6
replace failure with std::error:Error and thiserror
2020-05-25 20:37:41 -05:00
Harry Fei
1ffb247965
bump version to 3.1.1
2020-03-07 11:52:00 +08:00
Harry Fei
17e22cb896
update failure
to 0.1.7
.
2020-03-06 17:44:35 +08:00
Harry Fei
785d774744
bump version to 3.1.0
2019-11-03 19:29:55 +08:00
Harry Fei
562e7a5138
upgrade dependencies
2019-10-24 12:00:15 +08:00
Harry Fei
1419887fee
Merge pull request #15 from mullvad/use-automatic-failure-feature
...
Use automatic failure feature instead of redundant use_failure
2019-09-29 11:49:16 +08:00
Linus Färnstrand
d08fd2fd44
Add note about errors in readme
2019-09-27 08:47:05 +02:00
Linus Färnstrand
8dd2105190
Use automatic failure feature instead of redundant use_failure
2019-09-27 08:44:47 +02:00
Harry Fei
b0c86e667c
Merge pull request #16 from mullvad/impl-std-error
...
Implement std::error::Error when not using failure
2019-09-27 11:04:25 +08:00
Linus Färnstrand
3ff0557179
Implement std::error::Error when not using failure
2019-09-23 18:02:51 +02:00
Harry Fei
b4b622676b
bump version to 3.0.0
2019-09-22 14:03:58 +08:00
Harry Fei
28b9ed16f3
modify README
2019-09-22 14:03:58 +08:00
Harry Fei
579b7bbf79
fix build warning
2019-09-22 14:03:58 +08:00
Harry Fei
03c1766990
Merge pull request #14 from prokopyl/master
...
Make dependency on "failure" optional
2019-09-16 11:28:59 +08:00
Adrien Prokopowicz
d4f5419e9e
Make dependency on "failure" optional, but enabled by default
2019-09-15 15:03:04 +02:00