Commit Graph

533 Commits

Author SHA1 Message Date
Félix Saparelli
585f73adde Poll process completion harder on windows 2021-07-10 03:43:21 +12:00
Félix Saparelli
71a178d4c2 Actually check process when querying for completion
With --on-update=do-nothing, we need to know when the process is done
before we can spawn a new one, but we never actually used to truly check
the process, only the presence or absence of a spawned process. That
process may have already completed, but because we don't wait on it when
in do-nothing mode, there is no opportunity to notice this.

So now we either actually check the completion status of the process (on
Windows), or we expose the `done` mutex value on demand (Unix).
Essentially this adds a way to check the completion status of the
process without blocking (modulo a mutex lock on unix).

Fixes #200
2021-07-10 03:43:21 +12:00
Félix Saparelli
960bbbabbc cli: v1.16.1 2021-05-22 20:05:57 +12:00
Félix Saparelli
695c2e0f1a Update lockfile 2021-05-22 20:00:06 +12:00
Félix Saparelli
f0862b9f1e Update to clearscreen 1.0.4 for bugfix 2021-05-22 19:59:32 +12:00
Félix Saparelli
d8540d76b8
Fomat and clippy 2021-05-10 23:37:03 +12:00
Félix Saparelli
319727b0a6
It was in the wrong place the whole time! 🤬 2021-05-10 23:27:53 +12:00
Félix Saparelli
7e4ff78bc4
🤦 2021-05-10 23:21:30 +12:00
Félix Saparelli
169de99ee5
Whoops, wrong file 2021-05-10 23:15:14 +12:00
Félix Saparelli
1015c1979a
Update help snapshot version when releasing 2021-05-10 23:10:55 +12:00
Félix Saparelli
cb684fc7a8
Fix help snapshot for windows (.exe!) 2021-05-10 23:10:30 +12:00
Félix Saparelli
0d2f28c91a
Add test for cli help 2021-05-10 23:02:31 +12:00
Félix Saparelli
eafbc9a77b
Clean up due to removing pubs 2021-05-10 22:44:35 +12:00
Félix Saparelli
324fbe9055
Remove unused cli mod 2021-05-10 22:27:41 +12:00
Félix Saparelli
668d931eac
Remove public interface now that cli is a different crate 2021-05-10 22:26:38 +12:00
Félix Saparelli
6e844cc29a
Turn off panic=abort
This may help in some rare crash cases where system resources could be in an inconsistent state.
2021-05-09 16:29:50 +12:00
Félix Saparelli
dc4a31252f
Only check MSRV for library 2021-05-09 04:20:13 +12:00
Félix Saparelli
be16d2e6a8
Use published lib in cli for cli publish 2021-05-09 03:54:06 +12:00
Félix Saparelli
9a002be54c
Ignore lib version tags for CI to avoid work duplication 2021-05-09 03:49:57 +12:00
Félix Saparelli
ad9f51a24b lib: v1.16.0 2021-05-09 03:46:23 +12:00
Félix Saparelli
c517b98782 Split readmes 2021-05-09 03:44:11 +12:00
Félix Saparelli
6a0ac73547 cli: v1.16.0 2021-05-09 02:21:07 +12:00
Félix Saparelli
c5c69731c2 Use grep -E for macOS compat 2021-05-09 02:19:53 +12:00
Félix Saparelli
8ebbce5516
Add nix to install section 2021-05-09 01:50:44 +12:00
Félix Saparelli
d4e0e93278
Only build cli crate during release 2021-05-09 01:23:06 +12:00
Félix Saparelli
148be31f65
Add a stub to the watchexec (lib) crate to point to the watchexec-cli crate 2021-05-09 01:19:50 +12:00
Félix Saparelli
8295ac7a1c Don't fail CI on clippy warnings 2021-05-08 19:22:35 +12:00
Félix Saparelli
6aebd9b3e7 Formatting 2021-05-08 19:12:13 +12:00
Félix Saparelli
07f56ac7d5
Refactor inotify max watches warning to be less nested and satisfy clippy better 2021-05-08 19:07:56 +12:00
Félix Saparelli
d23261673b
Update clearscreen 2021-05-08 18:43:12 +12:00
Félix Saparelli
bdc3550a0d
Restrict CI to changes that will cause recompiles 2021-05-01 04:32:42 +12:00
Félix Saparelli
149b9b9821
Split the versioning of the lib and cli (in theory) 2021-05-01 04:22:33 +12:00
Félix Saparelli
aeab4159d4
Change semver policy for the library 2021-05-01 03:56:16 +12:00
Félix Saparelli
b761118c19
Leave current name on readme 2021-05-01 03:50:33 +12:00
Félix Saparelli
181ca7b5c5
Change crate description for library 2021-05-01 03:47:22 +12:00
Félix Saparelli
aff9f2d8f2
Leave binstall config on the lib crate for now 2021-05-01 03:46:36 +12:00
Félix Saparelli
1f3f4ada35 Split into two crates: lib and cli
That has a number of advantages:

- #193 the build.rs is only run for the CLI, so the Windows manifest is
  not embedded in the library anymore, opening it up for downstreams.

- it sets the stage for decoupling the version numbers of the CLI and
  library, to have the library increase its major more often, while the
  CLI retains compatibility further… that is, to have both follow semver

- it removes the CLI-only dependencies from the library

- it makes compilation a bit faster as compiling the library and the
  CLI's other dependencies can happen in parallel

One major disadvantage:

- installing via cargo changes from watchexec to watchexec-cli. Most
  installs are from prebuilt and from packages, but that's still a
  potential stumble.

And of course, the CLI APIs in the library are gone (they were already
deprecated, though).

We also take this opportunity to get rid of the clear_screen code and
use our new clearscreen library. #99 #171 #185
2021-05-01 03:27:17 +12:00
Félix Saparelli
898f83e29c
Add experimental builds for WinARM 2021-05-01 02:26:33 +12:00
Félix Saparelli
5da59b122d
Finish apple m1 prep config 2021-05-01 02:25:10 +12:00
Félix Saparelli
74934f304f 1.15.3 2021-05-01 00:27:44 +12:00
Félix Saparelli
db5b662581
Vom
Fixes #192 again
2021-04-30 14:19:19 +12:00
Félix Saparelli
74cec51700
Disable activeCodePage again
Fixes #192
2021-04-30 13:53:25 +12:00
Félix Saparelli
6e2835b8aa
Fix #191: timing suffix is now provided by Duration's Debug impl, so remove it from the message 2021-04-28 14:12:16 +12:00
Félix Saparelli
12184136f7 1.15.2 2021-04-27 02:04:52 +12:00
Félix Saparelli
bed43d9e4c
Add compatiblity entries again 2021-04-27 01:59:44 +12:00
Félix Saparelli
97207710cd
Attempt to fix format of metadata section 2021-04-27 01:49:39 +12:00
Félix Saparelli
1fab379cbd
Add back metadata 2021-04-27 01:39:17 +12:00
Félix Saparelli
0db6c97f2d
Add heapType again 2021-04-27 01:33:41 +12:00
Félix Saparelli
f30e2fc49e
Add activeCodePage again 2021-04-27 01:28:34 +12:00
Félix Saparelli
73ac954a40
Update ws ns to 2020 2021-04-27 01:23:51 +12:00