MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda / config_dir

Method config_dir

crates/cargo-lambda-remote/src/tls.rs:176–187  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

174
175 #[cfg(not(test))]
176 fn config_dir(&self) -> Option<PathBuf> {
177 // First check XDG_CONFIG_HOME environment variable explicitly
178 if let Ok(xdg_config) = std::env::var("XDG_CONFIG_HOME") {
179 let path = PathBuf::from(xdg_config).join("cargo-lambda");
180 if path.exists() {
181 return Some(path);
182 }
183 }
184
185 // Fall back to dirs::config_dir()
186 dirs::config_dir().map(|p| p.join("cargo-lambda"))
187 }
188
189 #[cfg(test)]
190 fn config_dir(&self) -> Option<PathBuf> {

Callers 3

cached_cert_pathMethod · 0.80
cached_key_pathMethod · 0.80
cached_ca_pathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected