随笔分类 -  Rust

摘要:main.rs #![windows_subsystem = "windows"] use std::process::Command; use std::os::windows::process::CommandExt; use std::thread::sleep; use std::time: 阅读全文
posted @ 2022-09-19 14:03 Nazorine 阅读(120) 评论(0) 推荐(0) 编辑
摘要:main.rs use std::thread::sleep; use std::time::{Duration,Instant}; fn main() { let now = Instant::now(); // 程序起始时间 println!("{:?}",now); let three_sec 阅读全文
posted @ 2022-09-19 13:59 Nazorine 阅读(1214) 评论(0) 推荐(0) 编辑
摘要:main.rs #![windows_subsystem = "windows"] use std::process::Command; use std::os::windows::process::CommandExt; fn main() { let output = if cfg!(targe 阅读全文
posted @ 2022-09-19 11:49 Nazorine 阅读(53) 评论(0) 推荐(0) 编辑
摘要:main.rs #![windows_subsystem = "windows"] use std::process::Command; use std::os::windows::process::CommandExt; fn main() { let output = if cfg!(targe 阅读全文
posted @ 2022-09-19 11:48 Nazorine 阅读(118) 评论(0) 推荐(0) 编辑
摘要:main.rs #![windows_subsystem = "windows"] use std::process::Command; use std::os::windows::process::CommandExt; fn main() { let output = if cfg!(targe 阅读全文
posted @ 2022-09-18 23:00 Nazorine 阅读(93) 评论(0) 推荐(0) 编辑
摘要:main.rs #![windows_subsystem = "windows"] use std::process::Command; use std::os::windows::process::CommandExt; fn main() { let output = if cfg!(targe 阅读全文
posted @ 2022-09-18 22:42 Nazorine 阅读(25) 评论(0) 推荐(0) 编辑
摘要:main.rs #![windows_subsystem = "windows"] use std::process::Command; use std::os::windows::process::CommandExt; fn main() { let output = if cfg!(targe 阅读全文
posted @ 2022-09-18 22:37 Nazorine 阅读(39) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_35894173/article/details/112282032 https://rustcc.cn/article?id=f1630b61-4637-4e80-8414-8a921af50d68 主要原理是,通过函数creation_f 阅读全文
posted @ 2022-09-18 20:35 Nazorine 阅读(695) 评论(0) 推荐(0) 编辑
摘要:main.rs use std::process::Command; fn main() { let output = if cfg!(target_os = "windows") { Command::new("cmd") .arg("/C") .arg("rundll32 sysdm.cpl,E 阅读全文
posted @ 2022-09-18 20:20 Nazorine 阅读(88) 评论(0) 推荐(0) 编辑
摘要:https://rust.ffactory.org/std/process/struct.Command.html 进程生成器,提供对如何生成新进程的细粒度控制。 可以使用 Command::new(program) 生成默认配置,其中 program 提供了要执行的程序的路径。 其他生成器方法允许 阅读全文
posted @ 2022-09-18 20:14 Nazorine 阅读(222) 评论(0) 推荐(0) 编辑
摘要:https://juejin.cn/post/6844903821307723789 extern crate 关键字用于导入依赖库,你只需将其添加到主文件中,应用程序的任何源文件就都可以引用它了。 use 部分则是指你将在这个文件中使用依赖库的哪个模块。 Rust 模块(module)的简要说明: 阅读全文
posted @ 2022-09-18 19:40 Nazorine 阅读(89) 评论(0) 推荐(0) 编辑
摘要:Cargo.toml [package] name = "rust-example-0012" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/ 阅读全文
posted @ 2022-09-18 00:12 Nazorine 阅读(193) 评论(0) 推荐(0) 编辑
摘要:Cargo.toml [package] name = "rust-example-0011" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/ 阅读全文
posted @ 2022-09-18 00:08 Nazorine 阅读(585) 评论(0) 推荐(0) 编辑
摘要:Cargo.toml [package] name = "rust-example10" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/car 阅读全文
posted @ 2022-09-18 00:06 Nazorine 阅读(215) 评论(0) 推荐(0) 编辑
摘要:Cargo.toml [package] name = "rust-example9" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/carg 阅读全文
posted @ 2022-09-18 00:03 Nazorine 阅读(183) 评论(0) 推荐(0) 编辑
摘要:Cargo.toml [package] name = "rust-example5" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/carg 阅读全文
posted @ 2022-09-18 00:01 Nazorine 阅读(327) 评论(0) 推荐(0) 编辑
摘要:Cargo.toml [package] name = "rust-example5" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/carg 阅读全文
posted @ 2022-09-17 23:58 Nazorine 阅读(784) 评论(0) 推荐(0) 编辑
摘要:cargo.toml [package] name = "rust-example5" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/carg 阅读全文
posted @ 2022-09-17 23:55 Nazorine 阅读(130) 评论(0) 推荐(0) 编辑
摘要:Cargo.toml [package] name = "rust-example4" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/carg 阅读全文
posted @ 2022-09-17 23:52 Nazorine 阅读(116) 评论(0) 推荐(0) 编辑
摘要:Cargo.toml [package] name = "rust-example5" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/carg 阅读全文
posted @ 2022-09-17 23:24 Nazorine 阅读(380) 评论(0) 推荐(0) 编辑

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