if-watch-plus

Crates.ioif-watch-plus
lib.rsif-watch-plus
version1.0.0
sourcesrc
created_at2024-10-05 21:22:53.937639
updated_at2024-10-05 21:22:53.937639
descriptioncrossplatform asynchronous network watcher
homepage
repositoryhttps://github.com/RawinSader/if-watch
max_upload_size
id1398487
size66,143
Rawi Sader (RawinSader)

documentation

README

General

This is a fork out of https://github.com/mxinden/if-watch The original repository is no longer maintained, and prevents cross compilation to ios targets This was caused by the system-configuration@0.5.0 dependency that uses a deprecated iOS interface which would be present in the bindings

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

Commit count: 73

cargo fmt