Debian Codegraph @

/

debian rust-local-ipaddress 0.1.3-1debian librust-local-ipaddress-dev debian librust-local-ipaddress+default-dev debian librust-local-ipaddress-0-dev debian librust-local-ipaddress-0+default-dev debian librust-local-ipaddress-0.1-dev debian librust-local-ipaddress-0.1+default-dev debian librust-local-ipaddress-0.1.3-dev debian librust-local-ipaddress-0.1.3+default-dev cargo local_ipaddress 0.1.3 debianjsonmakefilemarkdownrustrustrust-c-abishelltoml 17 files · 66 symbols
View dependency graph

Depends on

README (full)

local_ipaddress

Get your local ip address in Rust, using UdpSocket to get local ip address(not network interface or ifconfig), and won't panic.

API Docs: https://docs.rs/local_ipaddress

Usage

Add this to your Cargo.toml:

[dependencies]
local_ipaddress = "0.1.3"

Getting Started

use local_ipaddress;

fn main() {
    println!("{}", local_ipaddress::get().unwrap());
}

It works fine with both Windows and Linux.

License

MIT

dir debian/
dir src/
file .cargo_vcs_info.json
file .gitignore
file Cargo.lock
file Cargo.toml
file Cargo.toml.orig
file LICENSE
file README.md