fn get()

in xtask/src/dist.rs [117:146]


    fn get(project_root: &Path) -> Self {
        let name = match env::var("LLM_LS_TARGET") {
            Ok(target) => target,
            _ => {
                if cfg!(target_os = "linux") {
                    "x86_64-unknown-linux-gnu".to_string()
                } else if cfg!(target_os = "windows") {
                    "x86_64-pc-windows-msvc".to_string()
                } else if cfg!(target_os = "macos") {
                    "x86_64-apple-darwin".to_string()
                } else {
                    panic!("Unsupported OS, maybe try setting LLM_LS_TARGET")
                }
            }
        };
        let out_path = project_root.join("target").join(&name).join("release");
        let (exe_suffix, symbols_path) = if name.contains("-windows-") {
            (".exe".into(), Some(out_path.join("llm_ls.pdb")))
        } else {
            (String::new(), None)
        };
        let server_path = out_path.join(format!("llm-ls{exe_suffix}"));
        let artifact_name = format!("llm-ls-{name}{exe_suffix}");
        Self {
            name,
            server_path,
            symbols_path,
            artifact_name,
        }
    }