MCPcopy Create free account
hub / github.com/1jehuang/jcode / find_dev_binary

Function find_dev_binary

crates/jcode-build-support/src/paths.rs:304–310  ·  view source on GitHub ↗

Find the best development binary in the repo. Prefers the newest local self-dev or release binary.

(repo_dir: &Path)

Source from the content-addressed store, hash-verified

302/// Find the best development binary in the repo.
303/// Prefers the newest local self-dev or release binary.
304pub fn find_dev_binary(repo_dir: &Path) -> Option<PathBuf> {
305 newest_existing_binary(vec![
306 (selfdev_binary_path(repo_dir), "repo-selfdev"),
307 (release_binary_path(repo_dir), "repo-release"),
308 ])
309 .map(|(path, _)| path)
310}
311
312fn home_dir() -> Result<PathBuf> {
313 std::env::var("HOME")

Callers 7

run_self_devFunction · 0.85
execute_debug_commandFunction · 0.85
do_reloadMethod · 0.85
do_setupMethod · 0.85
client_update_candidateFunction · 0.85

Calls 1

newest_existing_binaryFunction · 0.85

Tested by

no test coverage detected