Skip to content

Commit

Permalink
Improve README.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Nov 30, 2020
1 parent c7f38ac commit 6719a82
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

```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(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/128))
Got event Ok(Up(fe80::cef9:e4ff:fe9e:b23b/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

## License
MIT OR Apache-2.0
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! IP address watching.
#![deny(missing_docs)]
//#![deny(warnings)]
#![deny(warnings)]

pub use ipnet::IpNet;
use std::io::Result;
Expand Down
3 changes: 0 additions & 3 deletions src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ mod aligned_buffer;
mod linux;
type Watcher = linux::NetlinkSocket;

#[cfg(not(target_os = "linux"))]
mod bsd;

#[derive(Debug)]
struct Fd(RawFd);

Expand Down

0 comments on commit 6719a82

Please sign in to comment.