pu369com

2021年8月21日

rust试一试native-windows-gui

摘要: git clone git@github.com:gabdube/native-windows-gui.git cd native-windows-gui/native-windows-gui # Running the tests from the workspace screws up the 阅读全文

posted @ 2021-08-21 23:35 pu369com 阅读(540) 评论(0) 推荐(0) 编辑

Git使用出现git@github.com: Permission denied (publickey). 处理

摘要: 以前处理过一次,时间长忘了,再记录一次 进入git bash界面然后:第一步,git config --global --list 验证邮箱与GitHub注册时输入的是否一致,没有没关系 第二步,通过git config --global user.name “yourname”,git confi 阅读全文

posted @ 2021-08-21 23:24 pu369com 阅读(312) 评论(0) 推荐(0) 编辑

rust 调用windows api

摘要: 代码: #[cfg(windows)] extern crate winapi; use std::io::Error; #[cfg(windows)] fn print_message(msg: &str) -> Result<i32, Error> { use std::ffi::OsStr; 阅读全文

posted @ 2021-08-21 22:43 pu369com 阅读(1513) 评论(0) 推荐(0) 编辑

rust:win10执行shell命令及GB18030decode解码utf8存盘

摘要: 费了点劲的知识点: 1 crate encoding处理汉字 2 Vec<u8>转&[u8] 代码(win10系统): extern crate encoding; use std::process::Command; use encoding::all::GB18030; use encoding 阅读全文

posted @ 2021-08-21 17:53 pu369com 阅读(472) 评论(0) 推荐(0) 编辑

正则表达式(Rust)

摘要: 代码 use regex::{Regex, Captures}; use itertools::Itertools; use std::error::Error; fn main() -> Result<(), Box<dyn Error>> { let s = "123-4567-89,987-6 阅读全文

posted @ 2021-08-21 11:20 pu369com 阅读(317) 评论(0) 推荐(0) 编辑

导航