10 unstable releases (4 breaking)

✓ Uses Rust 2018 edition

0.5.3 Jan 7, 2020
0.5.1 Oct 11, 2019
0.3.4 Jan 15, 2019
0.3.3 May 11, 2018
0.3.0 Jul 19, 2017
Download history 16542/week @ 2019-12-02 15026/week @ 2019-12-09 15688/week @ 2019-12-16 12405/week @ 2019-12-23 13615/week @ 2019-12-30 18887/week @ 2020-01-06 21012/week @ 2020-01-13 25202/week @ 2020-01-20 19630/week @ 2020-01-27 19134/week @ 2020-02-03 17028/week @ 2020-02-10 17494/week @ 2020-02-17 18060/week @ 2020-02-24 19138/week @ 2020-03-02 21183/week @ 2020-03-09 21118/week @ 2020-03-16

60,379 downloads per month
Used in 83 crates (17 directly)

MIT/Apache

10KB
111 lines

Documentation Crates.io

Canonical definitions of home_dir, cargo_home, and rustup_home.

This provides the definition of home_dir used by Cargo and rustup, as well functions to find the correct value of CARGO_HOME and RUSTUP_HOME.

The definition of home_dir provided by the standard library is incorrect because it considers the HOME environment variable on Windows. This causes surprising situations where a Rust program will behave differently depending on whether it is run under a Unix emulation environment like Cygwin or MinGW. Neither Cargo nor rustup use the standard libraries definition - they use the definition here.

This crate further provides two functions, cargo_home and rustup_home, which are the canonical way to determine the location that Cargo and rustup store their data.

See rust-lang/rust#43321.

License

MIT OR Apache-2.0

Dependencies

~26KB