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

Function default_plugin_config_paths

crates/core/src/plugin.rs:1166–1177  ·  view source on GitHub ↗
(cwd: Option<&Path>, user_dir: Option<PathBuf>)

Source from the content-addressed store, hash-verified

1164/// for cross-crate reuse by the gateway.
1165#[doc(hidden)]
1166pub fn default_plugin_config_paths(cwd: Option<&Path>, user_dir: Option<PathBuf>) -> Vec<PathBuf> {
1167 let mut paths = vec![PathBuf::from("/etc/nemo-relay/plugins.toml")];
1168 if let Some(cwd) = cwd
1169 && let Some(project) = nearest_project_plugin_config(cwd)
1170 {
1171 paths.push(project);
1172 }
1173 if let Some(dir) = user_dir {
1174 paths.push(dir.join("plugins.toml"));
1175 }
1176 paths
1177}
1178
1179/// Walks upward from `start` for the nearest `.nemo-relay/plugins.toml`. `pub`
1180/// only for cross-crate reuse by the gateway.

Calls 3

joinMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected