Function veloren_common_base::userdata_dir::userdata_dir
source · pub fn userdata_dir(
workspace: bool,
strategy: Option<&str>,
manifest_dir: &str,
) -> PathBuf
Expand description
§VELOREN_USERDATA_STRATEGY
environment variable
Read during compilation
Useful to set when compiling for distribution
“system” => system specific project data directory
“executable” =>
- The VELOREN_USERDATA environment variable
- The VELOREN_USERDATA_STRATEGY environment variable
- The CARGO_MANIFEST_DIR/userdata or CARGO_MANIFEST_DIR/../userdata
depending on if a workspace if being used