I see std::env::home_dir is deprecated, is there any other way to get home_dir in Rust?

Doc link:home_dir in std::env - Rust

Is there a crate available?

We'd generally use the dirs or directories crates.

1 Like

Thanks a lot, I'll try it out.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.