(start: &Path)
| 1180 | /// only for cross-crate reuse by the gateway. |
| 1181 | #[doc(hidden)] |
| 1182 | pub fn nearest_project_plugin_config(start: &Path) -> Option<PathBuf> { |
| 1183 | start |
| 1184 | .ancestors() |
| 1185 | .map(|ancestor| ancestor.join(".nemo-relay").join("plugins.toml")) |
| 1186 | .find(|path| path.exists()) |
| 1187 | } |
| 1188 | |
| 1189 | /// Resolves the nemo-relay user config directory from `XDG_CONFIG_HOME`, then |
| 1190 | /// `HOME`/`USERPROFILE`. `pub` only for cross-crate reuse by the gateway. |
no test coverage detected