Skip to content

Commit

Permalink
Rename to if-watch.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Nov 11, 2020
1 parent 97f2784 commit ec5653d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
9 changes: 3 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
[package]
name = "ip-watch"
name = "if-watch"
version = "0.1.0"
authors = ["Parity Technologies Limited <admin@parity.io>"]
authors = ["David Craven <david@craven.ch>", "Parity Technologies Limited <admin@parity.io>"]
edition = "2018"
keywords = ["asynchronous", "routing"]

[dependencies]
futures-lite = "1.11.2"
ipnet = "2.3.0"
libc = "0.2.66"

[target.'cfg(unix)'.dependencies]
async-io = "1.2.0"

[target.'cfg(windows)'.dependencies]
futures-lite = "1.11.2"
if-addrs = "0.6.5"
winapi = { version = "0.3.8", features = ["netioapi", "ntdef", "winerror", "ws2def"] }

[dev-dependencies]
futures-lite = "1.11.2"
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Cross platform asynchronous network watcher

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

## License
Apache + MIT
2 changes: 1 addition & 1 deletion examples/ip_watch.rs → examples/if_watch.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use ip_watch::IfWatcher;
use if_watch::IfWatcher;

fn main() {
futures_lite::future::block_on(async {
Expand Down

0 comments on commit ec5653d

Please sign in to comment.