MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda / from_template

Method from_template

crates/cargo-lambda-cli/tests/harness/project.rs:53–58  ·  view source on GitHub ↗

Copy the test project from a fixed state

(template_path: impl AsRef<std::path::Path>)

Source from the content-addressed store, hash-verified

51impl Project {
52 /// Copy the test project from a fixed state
53 pub fn from_template(template_path: impl AsRef<std::path::Path>) -> Self {
54 let root = paths::root();
55 let project_root = root.join("case");
56 snapbox::path::copy_template(template_path.as_ref(), &project_root).unwrap();
57 Self { root: project_root }
58 }
59
60 /// Root of the project, ex: `/path/to/cargo/target/cit/t0/foo`
61 pub fn root(&self) -> PathBuf {

Callers

nothing calls this directly

Calls 1

rootFunction · 0.85

Tested by

no test coverage detected