【My Rust Crate】obtaining Linux system device information

Project Introduction

  • get_local_info is a Rust crate that obtains linux device information,Its goal is to solve the difficulty of obtaining Linux system device information.Support Chinese operating systems such as KyLin, UOS, HarmonyOS, etc

    Project maintenance: long-term

Current features:

Obtain activity network card information: Netcard IPv4 IPv6 mac

How to use

1.cargo add get_local_info

2.Import into your project

复制代码
extern crate get_local_info;

fn main() {

    println!("{}", get_local_info::get_pc_net_card_name());
    println!("{}", get_local_info::get_pc_ipv4());
    println!("{}", get_local_info::get_pc_ipv6());
    println!("your mac:{}", get_local_info::get_pc_mac());
}

About the Author

相关推荐
JXNL@2 分钟前
电压基准芯片核心知识解析:从原理到选型(含MAX6167A实例)
单片机·嵌入式硬件·电压基准芯片
用户2345267009823 分钟前
Python构建AI Agent自主智能体系统深度好文
后端·程序员
feathered-feathered4 分钟前
Redis基础知识+RDB+AOF(面试)
java·数据库·redis·分布式·后端·中间件·面试
周杰伦_Jay5 分钟前
【Eino框架】Go语言驱动的LLM应用开发新范式
开发语言·后端·golang
兔丝7 分钟前
Redis + ThinkPHP 实战学习手册(含秒杀场景)
后端
上78将7 分钟前
Java中既有编译执行又有解释执行,这个怎么理解?
java·开发语言
一个无名的炼丹师8 分钟前
【硬核实战】Python处理多源异构文档:从读取到智能信息提取的统一框架深度剖析
开发语言·python
Mr_Xuhhh9 分钟前
JAVA期末重点
java·开发语言·python
a程序小傲18 分钟前
小红书Java面试被问:java创建对象有哪些方式?
java·开发语言·面试
代码or搬砖26 分钟前
Spring Cache讲解
java·后端·spring