MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / install_link

Function install_link

atomic-cli/src/remote_sandbox.rs:367–370  ·  view source on GitHub ↗

Install the link, once per process. Harmless outside a remote sandbox: it is only ever called by a remote sandbox's cache.

()

Source from the content-addressed store, hash-verified

365/// Install the link, once per process. Harmless outside a remote sandbox:
366/// it is only ever called by a remote sandbox's cache.
367pub fn install_link() {
368 static INSTALLED: OnceLock<()> = OnceLock::new();
369 INSTALLED.get_or_init(|| atomic_repository::set_remote_sandbox_link(Box::new(CliLink)));
370}
371
372/// `atomic sandbox materialize` inside a remote sandbox: write the view's
373/// tree into `root` and (re)make its cache. Returns the number of entries

Callers 2

mainFunction · 0.85
materializeFunction · 0.85

Calls 1

set_remote_sandbox_linkFunction · 0.85

Tested by

no test coverage detected