Skip to content

Commit 2400938

Browse files
committed
feat(constants): only compile windows constants on windows os
1 parent fdb21a5 commit 2400938

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/config/constants.rs

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ pub const XDG_CONFIG_ENV: &str = "XDG_CONFIG_HOME";
99
pub const HOME_ENV: &str = "HOME";
1010

1111
pub const WINDOWS_APPDATA_ENV: &str = "APPDATA";
12+
13+
#[cfg(target_os = "windows")]
1214
pub const WINDOWS_USERPROFILE_ENV: &str = "USERPROFILE";
15+
#[cfg(target_os = "windows")]
1316
pub const WINDOWS_HOMEDRIVE_ENV: &str = "HOMEDRIVE";
17+
#[cfg(target_os = "windows")]
1418
pub const WINDOWS_HOMEPATH_ENV: &str = "HOMEPATH";

0 commit comments

Comments
 (0)