Update README.md

main
shellrow 3 years ago
parent 38fc10e014
commit 75f24cfe6c
  1. 6
      README.md

@ -3,9 +3,12 @@
[license-badge]: https://img.shields.io/crates/l/default-net.svg [license-badge]: https://img.shields.io/crates/l/default-net.svg
[examples-url]: https://github.com/shellrow/default-net/tree/main/examples [examples-url]: https://github.com/shellrow/default-net/tree/main/examples
# default-net [![Crates.io][crates-badge]][crates-url] ![License][license-badge] # default-net [![Crates.io][crates-badge]][crates-url] ![License][license-badge]
Get default network information
`default-net` provides a cross-platform API for network interface and gateway. `default-net` provides a cross-platform API for network interface and gateway.
- Get default Network Interface and Gateway information
- Get list of available Network Interfaces
## Supported platform ## Supported platform
- Linux - Linux
- macOS - macOS
@ -19,6 +22,7 @@ default-net = "0.7.0"
``` ```
## Example ## Example
The following example retrieves and displays information about the default network interface.
```rust ```rust
use default_net; use default_net;

Loading…
Cancel
Save