3个不稳定版本

使用旧的Rust 2015

0.2.1 2018年8月1日
0.2.0 2017年11月20日
0.1.0 2017年11月10日

#14 in #主机名

Download history · Rust 包仓库 66/week @ 2024-03-12 · Rust 包仓库 60/week @ 2024-03-19 · Rust 包仓库 74/week @ 2024-03-26 · Rust 包仓库 121/week @ 2024-04-02 · Rust 包仓库 37/week @ 2024-04-09 · Rust 包仓库 62/week @ 2024-04-16 · Rust 包仓库 67/week @ 2024-04-23 · Rust 包仓库 55/week @ 2024-04-30 · Rust 包仓库 62/week @ 2024-05-07 · Rust 包仓库 117/week @ 2024-05-14 · Rust 包仓库 90/week @ 2024-05-21 · Rust 包仓库 58/week @ 2024-05-28 · Rust 包仓库 61/week @ 2024-06-04 · Rust 包仓库 48/week @ 2024-06-11 · Rust 包仓库 57/week @ 2024-06-18 · Rust 包仓库 46/week @ 2024-06-25 · Rust 包仓库

221 每月下载量
3 crates 中使用

MIT 协议

3KB

machine-ip

在Rust中获取本地IP地址,底层使用hostname -I,可能不适用于旧版本的Windows

machine-ip = "0.1"

然后

extern crate machine_ip;

let ip = machine_ip::get().unwrap();
println!("local ip address: {:?}", ip.to_string());

许可证

MIT

无运行时依赖