戳人痛处

导航

统计

随笔分类 -  rust

rust编程
[记]Rust上传库到crates.io失败的解决办法参考
摘要:1.SSL验证失败 fatal: unable to access 'https://github.com/rust-lang/crates.io-index/': OpenSSL SSL_read: Connection was reset, errno 10054 取消git的SSL验证 git 阅读全文

posted @ 2023-02-01 09:40 戳人痛处 阅读(370) 评论(0) 推荐(0) 编辑

[记] python&rust获取windows下的串口和虚拟串口
摘要:comportlist = "0.1.2" use comportlist::available_ports; for idx in available_ports(vec!["CNCPorts","Ports"]){ if let Some(ss) = idx.serial_number{ pri 阅读全文

posted @ 2022-12-12 14:07 戳人痛处 阅读(428) 评论(0) 推荐(0) 编辑

[记]Rust 调用文件浏览器选取需要的文件&文件夹路径
摘要:依赖: rfd = "0.10.0" 选取单个文件: use rfd::FileDialog; let files = FileDialog::new() .add_filter("text", &["txt", "rs"]) .add_filter("rust", &["rs", "toml"]) 阅读全文

posted @ 2022-11-13 10:59 戳人痛处 阅读(804) 评论(0) 推荐(0) 编辑

[记]Rust在多线程里使用串口
摘要:1. toml [dependencies] serial = "0.4.0" encoding = "0.2.33" -- use std::io::{Read, Write}; use std::sync::{Arc, Mutex}; use std::thread; use std::time 阅读全文

posted @ 2022-08-18 13:29 戳人痛处 阅读(862) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示