File tree Expand file tree Collapse file tree 26 files changed +263
-49
lines changed Expand file tree Collapse file tree 26 files changed +263
-49
lines changed Original file line number Diff line number Diff line change 12
12
mod features;
13
13
pub use features:: * ;
14
14
15
- #[ cfg( feature = "std" ) ]
16
- pub mod vars;
15
+ mod vars;
16
+ pub use vars:: * ;
17
+
18
+ mod varsets;
19
+ pub use varsets:: * ;
17
20
18
21
#[ doc = include_str ! ( "../../../README.md" ) ]
19
22
#[ cfg( doctest) ]
Original file line number Diff line number Diff line change 1
1
// This is free and unencumbered software released into the public domain.
2
2
3
- pub mod cargo;
4
- pub use cargo:: * ;
5
-
6
- pub mod conda;
7
- pub use conda:: * ;
8
-
9
- pub mod git;
10
- pub use git:: * ;
11
-
12
- pub mod macos;
13
- pub use macos:: * ;
14
-
15
- pub mod openssl;
16
- pub use openssl:: * ;
17
-
18
- pub mod posix;
19
- pub use posix:: * ;
20
-
21
- pub mod python;
22
- pub use python:: * ;
23
-
24
- pub mod ruby;
25
- pub use ruby:: * ;
26
-
27
- pub mod windows;
28
- pub use windows:: * ;
29
-
30
- pub mod xdg;
31
- pub use xdg:: * ;
32
-
33
3
#[ cfg( feature = "std" ) ]
34
4
pub fn var ( key : impl AsRef < std:: ffi:: OsStr > ) -> Option < String > {
35
5
use std:: env:: VarError :: * ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // This is free and unencumbered software released into the public domain.
2
+
3
+ pub mod aws;
4
+ pub use aws:: * ;
5
+
6
+ pub mod cargo;
7
+ pub use cargo:: * ;
8
+
9
+ pub mod conda;
10
+ pub use conda:: * ;
11
+
12
+ pub mod cuda;
13
+ pub use cuda:: * ;
14
+
15
+ pub mod docker;
16
+ pub use docker:: * ;
17
+
18
+ pub mod git;
19
+ pub use git:: * ;
20
+
21
+ pub mod go;
22
+ pub use go:: * ;
23
+
24
+ pub mod homebrew;
25
+ pub use homebrew:: * ;
26
+
27
+ pub mod java;
28
+ pub use java:: * ;
29
+
30
+ pub mod locale;
31
+ pub use locale:: * ;
32
+
33
+ pub mod macos;
34
+ pub use macos:: * ;
35
+
36
+ pub mod near;
37
+ pub use near:: * ;
38
+
39
+ pub mod node;
40
+ pub use node:: * ;
41
+
42
+ pub mod openssl;
43
+ pub use openssl:: * ;
44
+
45
+ pub mod posix;
46
+ pub use posix:: * ;
47
+
48
+ pub mod proxy;
49
+ pub use proxy:: * ;
50
+
51
+ pub mod python;
52
+ pub use python:: * ;
53
+
54
+ pub mod ruby;
55
+ pub use ruby:: * ;
56
+
57
+ pub mod rust;
58
+ pub use rust:: * ;
59
+
60
+ pub mod ssh;
61
+ pub use ssh:: * ;
62
+
63
+ pub mod windows;
64
+ pub use windows:: * ;
65
+
66
+ pub mod xdg;
67
+ pub use xdg:: * ;
Original file line number Diff line number Diff line change
1
+ // This is free and unencumbered software released into the public domain.
2
+
3
+ use crate :: var;
4
+
5
+ /// See: https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-envvars.html
6
+ pub fn aws_access_key_id ( ) -> Option < String > {
7
+ var ( "AWS_ACCESS_KEY_ID" )
8
+ }
9
+
10
+ /// See: https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-envvars.html
11
+ pub fn aws_default_region ( ) -> Option < String > {
12
+ var ( "AWS_DEFAULT_REGION" )
13
+ }
14
+
15
+ /// See: https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-envvars.html
16
+ pub fn aws_secret_access_key ( ) -> Option < String > {
17
+ var ( "AWS_SECRET_ACCESS_KEY" )
18
+ }
Original file line number Diff line number Diff line change 1
1
// This is free and unencumbered software released into the public domain.
2
2
3
- use super :: var;
3
+ use crate :: var;
4
4
5
5
/// See: https://doc.rust-lang.org/cargo/reference/environment-variables.html
6
6
pub fn cargo ( ) -> Option < String > {
Original file line number Diff line number Diff line change 1
1
// This is free and unencumbered software released into the public domain.
2
2
3
- use super :: var;
3
+ use crate :: var;
4
4
5
5
pub fn conda ( ) -> Option < String > {
6
6
var ( "CONDA" )
Original file line number Diff line number Diff line change
1
+ // This is free and unencumbered software released into the public domain.
2
+
3
+ use crate :: var;
4
+
5
+ /// See: https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#env-vars
6
+ pub fn cuda_cache_disable ( ) -> Option < bool > {
7
+ var ( "CUDA_CACHE_DISABLE" ) . map ( |s| s == "1" )
8
+ }
Original file line number Diff line number Diff line change
1
+ // This is free and unencumbered software released into the public domain.
2
+
3
+ use crate :: var;
4
+
5
+ /// See: https://docs.docker.com/reference/cli/docker/
6
+ pub fn docker_host ( ) -> Option < String > {
7
+ var ( "DOCKER_HOST" )
8
+ }
Original file line number Diff line number Diff line change 1
1
// This is free and unencumbered software released into the public domain.
2
2
3
- use super :: var;
3
+ use crate :: var;
4
4
5
5
/// See: https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables
6
6
pub fn git ( ) -> Option < String > {
You can’t perform that action at this time.
0 commit comments