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

Method is_function_available

crates/cargo-lambda-watch/src/state.rs:82–95  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

80 }
81
82 pub(crate) fn is_function_available(&self, name: &str) -> Result<(), HashSet<String>> {
83 if self.initial_functions.contains(name) {
84 return Ok(());
85 }
86
87 match binary_targets(&self.manifest_path, false) {
88 Err(err) => {
89 tracing::error!(?err, "failed to load the project's binaries");
90 Err(self.initial_functions.clone())
91 }
92 Ok(binaries) if binaries.contains(name) => Ok(()),
93 Ok(binaries) => Err(binaries),
94 }
95 }
96}
97
98#[derive(Clone, Debug)]

Callers 3

furls_handlerFunction · 0.80
invoke_handlerFunction · 0.80

Calls 1

binary_targetsFunction · 0.85

Tested by

no test coverage detected