pu369com

2025年7月17日

重新安装rust

摘要: win10环境 一、卸载原有rust 1 执行 rustup self uninstall 2 手动清理残留文件(适用于卸载不彻底) %USERPROFILE%\.cargo # 删除此文件夹 %USERPROFILE%\.rustup # 删除此文件夹 3 彻底清除环境变量(适用于卸载不彻底) 在 阅读全文

posted @ 2025-07-17 18:51 pu369com 阅读(80) 评论(0) 推荐(0)

Lapce,用Rust写的代码编辑器

摘要: Lapce读音 /læps/ 地址:https://github.com/lapce/lapce/releases 替代:https://dgithub.xyz/lapce/lapce/releases 由于是rust,下载源码 https://github.com/lapce/lapce/arch 阅读全文

posted @ 2025-07-17 18:50 pu369com 阅读(154) 评论(0) 推荐(0)

windows下用rust获取本机ip

摘要: use std::net::UdpSocket; fn main() { let ip = UdpSocket::bind("0.0.0.0:0") .and_then(|s| s.connect("8.8.8.8:80").map(|_| s)) .map(|s| s.local_addr().u 阅读全文

posted @ 2025-07-17 14:45 pu369com 阅读(28) 评论(0) 推荐(0)

导航