MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / cli_binary_path

Function cli_binary_path

crates/guard/src/lib.rs:44–52  ·  view source on GitHub ↗

Returns the expected CLI binary path.

()

Source from the content-addressed store, hash-verified

42
43/// Returns the expected CLI binary path.
44fn cli_binary_path() -> PathBuf {
45 let profile = "release";
46 let cli_name = if cfg!(windows) {
47 "spacetimedb-cli.exe"
48 } else {
49 "spacetimedb-cli"
50 };
51 target_dir().join(profile).join(cli_name)
52}
53
54/// Lazily-initialized path to the pre-built CLI binary.
55static CLI_BINARY_PATH: OnceLock<PathBuf> = OnceLock::new();

Callers 1

ensure_binaries_builtFunction · 0.85

Calls 2

target_dirFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…