Commit Graph
627 Commits
Author SHA1 Message Date
Aron Heinecke be6ef8a17f allow more than channels and make crossbeam optional 2022-08-06 19:27:06 +02:00
Aron Heinecke c3acb635e2 move debouncer to own crate and fix audit failures 2022-08-06 19:27:06 +02:00
Aron Heinecke ffd21789e8 Allow selecting a tick_rate for the debouncer 2022-08-06 19:27:06 +02:00
Aron Heinecke 81583950fd send errors in debouncer, add example, name thread 2022-08-06 19:27:06 +02:00
Aron Heinecke 4b8cc05ed1 remove smart event kind handler in debouncer 2022-08-06 19:27:06 +02:00
Aron Heinecke 0fb7c8669a cleanup 2022-08-06 19:27:06 +02:00
Aron Heinecke 196ecc37fa Add debouncer 2022-08-06 19:27:06 +02:00
Samuel Colvin bc170f52fb add watchfiles to readme (#424) 2022-07-21 20:02:17 +09:00
Yuki Okushi 9c1977b6ee Clean-up CI config (#417) 2022-06-17 20:49:53 +09:00
visig fcaeb0e982 PollWatcher: remove Mutex::lock() when emit event 2022-06-15 21:47:41 +02:00
visig 24eb0f859c refactor: PollWatcher
Refactor PollWatcher to make it clean for further develop.

This commit would not change any behaviors user observable (not include
Debug implementation) and public documentation.
2022-06-15 21:47:41 +02:00
Yuki Okushi 5687d54974 Harden CI for examples (#408) 2022-06-07 22:26:03 +09:00
Jan Scheer 0245625999 examples: fix watcher_kind example to work with the changes from #396 (#407) 2022-05-21 12:17:41 +09:00
visig 6a9fb7ab1e fix: PollWatcher panic after delete-and-recreate
See #359 for more detail.
2022-05-18 14:38:47 +02:00
Aron Heinecke 1cfcbbb6fb fix format for linked PR 2022-05-01 15:41:17 +02:00
Aron Heinecke ae5c055600 Prepare 5.0.0-pre.15, msrv 1.56
Raise MSRV to 1.56 to allow for rust-version
2022-05-01 15:37:19 +02:00
Aron Heinecke 480de9dc8f fix windows compilation of example 2022-04-29 01:30:10 +02:00
jasta 8e60f3dcbc Run cargo fmt against poll_sysfs.rs 2022-04-29 01:30:10 +02:00
jasta c74b3d2283 Fixed windows compilation of poll_sysfs example 2022-04-29 01:30:10 +02:00
jasta 7d8cbbcc1e Oops, reversed accidental delietion of examples/poll_sysfs 2022-04-29 01:30:10 +02:00
Aron Heinecke 6077ef019a run nix test not on windows 2022-04-29 01:30:10 +02:00
jasta 20549faaff Fix newer rust usage of captured format variables 2022-04-29 01:30:10 +02:00
jasta e514ba6a9d Add example of new PollWatcher compare_contents feature
The example shows how to use this to effectively watch pseudo
filesystems like those through sysfs (i.e. /sys/).  The example
by default will only work on Linux but does demonstrate well that it
works where the previous metadata only approach would not.

Sample output:

  Trying "/sys/class/net/lo/statistics/tx_bytes", use `ping localhost` to see changes!
  watching ["/sys/class/net/lo/statistics/tx_bytes"]...
  changed: Event { kind: Modify(Data(Any)), paths: ["/sys/class/net/lo/statistics/tx_bytes"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }
  changed: Event { kind: Modify(Data(Any)), paths: ["/sys/class/net/lo/statistics/tx_bytes"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }
  changed: Event { kind: Modify(Data(Any)), paths: ["/sys/class/net/lo/statistics/tx_bytes"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }
  changed: Event { kind: Modify(Data(Any)), paths: ["/sys/class/net/lo/statistics/tx_bytes"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }
2022-04-29 01:30:10 +02:00
jasta f3c38f1288 Remove with_delay method instead of deprecate it 2022-04-29 01:30:10 +02:00
jasta 392354ca61 Fixed improper use of read loop 2022-04-29 01:30:10 +02:00