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

Function new

crates/cargo-lambda-watch/src/watcher.rs:50–62  ·  view source on GitHub ↗
(
    cmd: Command,
    wc: WatcherConfig,
    ext_cache: ExtensionCache,
)

Source from the content-addressed store, hash-verified

48}
49
50pub(crate) async fn new(
51 cmd: Command,
52 wc: WatcherConfig,
53 ext_cache: ExtensionCache,
54) -> Result<Arc<Watchexec>, ServerError> {
55 let init = crate::watcher::init();
56 let runtime = crate::watcher::runtime(cmd, wc, ext_cache).await?;
57
58 let wx = Watchexec::new(init, runtime)?;
59 wx.send_event(Event::default(), Priority::Urgent).await?;
60
61 Ok(wx)
62}
63
64fn init() -> InitConfig {
65 let mut config = InitConfig::default();

Callers 15

mainFunction · 0.85
test_generic_handlerFunction · 0.85
binary_path_in_zipMethod · 0.85
sha256Method · 0.85
listMethod · 0.85
use_zip_in_placeFunction · 0.85
zip_binaryFunction · 0.85
read_binaryFunction · 0.85
include_files_in_zipFunction · 0.85
convert_to_unix_pathFunction · 0.85

Calls 3

initFunction · 0.85
runtimeFunction · 0.85
send_eventMethod · 0.80