MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / nearest_project_plugin_config

Function nearest_project_plugin_config

crates/core/src/plugin.rs:1182–1187  ·  view source on GitHub ↗
(start: &Path)

Source from the content-addressed store, hash-verified

1180/// only for cross-crate reuse by the gateway.
1181#[doc(hidden)]
1182pub 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.

Callers 2

Calls 2

joinMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected