pu369com

2025年7月18日

Rust 中编译出的可执行文件默认会显示控制台窗口(黑框),如何隐藏黑框

摘要: ‌修改编译目标为 Windows 子系统 (GUI)‌ 在 Cargo.toml 中添加配置指定目标为 Windows GUI 应用: tomlCopy Code [package.metadata.windows_subsystem] windows = "windows" 或直接通过 Rust 阅读全文

posted @ 2025-07-18 18:44 pu369com 阅读(215) 评论(0) 推荐(1)

如何用rust复制局域网共享文件夹中的文件

摘要: 内置copy use std::fs::File; use std::io::copy; fn main() -> std::io::Result<()> { let mut source_file = File::open(r"\\192.168.2.2\共享文件\source.db")?; le 阅读全文

posted @ 2025-07-18 15:42 pu369com 阅读(22) 评论(0) 推荐(0)

导航