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

#729 in Operating systems

Download history 62728/week @ 2024-07-18 61234/week @ 2024-07-25 59283/week @ 2024-08-01 76697/week @ 2024-08-08 64573/week @ 2024-08-15 67417/week @ 2024-08-22 74720/week @ 2024-08-29 76350/week @ 2024-09-05 69446/week @ 2024-09-12 70767/week @ 2024-09-19 67581/week @ 2024-09-26 75876/week @ 2024-10-03 70916/week @ 2024-10-10 68699/week @ 2024-10-17 69529/week @ 2024-10-24 68170/week @ 2024-10-31

290,785 downloads per month
Used in 300 crates (15 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–43MB
~664K SLoC