21 releases (8 stable)

3.2.0 Nov 21, 2023
3.0.1 Mar 30, 2023
3.0.0 Nov 4, 2022
2.0.0 Aug 20, 2022
0.1.6 Nov 30, 2020

#53 in Operating systems

Download history 61235/week @ 2023-10-31 59809/week @ 2023-11-07 79345/week @ 2023-11-14 60989/week @ 2023-11-21 62837/week @ 2023-11-28 53735/week @ 2023-12-05 49459/week @ 2023-12-12 39925/week @ 2023-12-19 22294/week @ 2023-12-26 40075/week @ 2024-01-02 48223/week @ 2024-01-09 54192/week @ 2024-01-16 51928/week @ 2024-01-23 51488/week @ 2024-01-30 55385/week @ 2024-02-06 42584/week @ 2024-02-13

212,995 downloads per month
Used in 259 crates (12 directly)

MIT/Apache

27KB
626 lines

Cross platform asynchronous network watcher

cargo run --example if_watch
Got event Ok(Up(127.0.0.1/8))
Got event Ok(Up(192.168.6.65/24))
Got event Ok(Up(::1/128))
Got event Ok(Up(2a01:8b81:7000:9700:cef9:e4ff:fe9e:b23b/64))
Got event Ok(Up(fe80::cef9:e4ff:fe9e:b23b/64))

Supported platforms at the moment are: Linux, Windows and Android with a fallback for Macos and ios that polls for changes every 10s.

License

MIT OR Apache-2.0


lib.rs:

IP address watching.

Dependencies

~0.8–54MB
~805K SLoC