项目:with_dir
with_dir 是一个轻量、快速的实用库,支持临时变更当前工作目录。
use with_dir::WithDir;
use std::path::Path;
let path = Path::new("src");
// enter that directory
WithDir::new(path).map(|_| {
// Current working directory is now src
}).unwrap();
// cwd is reset
crates.io - with_dir: https://crates.io/crates/with_dir
github - huwper/with_dir: https://github.com/huwper/with_dir
文章:Temporary lifetimes
在 Rust 语言团队设计会议上,回顾了 Niko Matsakis 写的关于 Temporary lifetimes 的文档,并且考虑如何在 Rust 2024 Edition 中如何解决一些毛刺。这篇文章是 Lang 团队审阅的文档副本。
Article - Temporary lifetimes: https://smallcultfollowing.com/babysteps/blog/2023/03/15/temporary-lifetimes/
Reddit - Temporary lifetimes by Niko Matsakis: https://www.reddit.com/r/rust/comments/11sfjd5/temporary_lifetimes_by_niko_matsakis/
This Week In Rust 486
新一期的 Rust 周报速递发布,快来看看有哪些内容你曾经关注过 :)
This Week in Rust 486: https://this-week-in-rust.org/blog/2023/03/15/this-week-in-rust-486/
From 日报小组 PsiACE
社区学习交流平台订阅:
评论区
写评论还没有评论