MCPcopy Create free account
hub / github.com/dada-lang/dada / cargo_path

Function cargo_path

components/xtask/src/deploy.rs:134–142  ·  view source on GitHub ↗
(env_var: &str)

Source from the content-addressed store, hash-verified

132}
133
134fn cargo_path(env_var: &str) -> anyhow::Result<PathBuf> {
135 match std::env::var(env_var) {
136 Ok(s) => {
137 tracing::debug!("cargo_path({env_var}) = {s}");
138 Ok(PathBuf::from(s))
139 }
140 Err(_) => anyhow::bail!("`{}` not set", env_var),
141 }
142}
143
144fn copy_dir_recursive(src: &PathBuf, dst: &PathBuf) -> anyhow::Result<()> {
145 std::fs::create_dir_all(dst)?;

Callers 1

mainMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected