Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// This is free and unencumbered software released into the public domain.

use crate::var;

/// See: https://doc.rust-lang.org/cargo/reference/environment-variables.html
pub fn cargo() -> Option<String> {
    var("CARGO")
}

/// See: https://doc.rust-lang.org/cargo/reference/environment-variables.html
pub fn cargo_home() -> Option<String> {
    var("CARGO_HOME")
}