(&self, workspace: Option<PathBuf>)
| 1407 | } |
| 1408 | |
| 1409 | fn sources(&self, workspace: Option<PathBuf>) -> Sources { |
| 1410 | Sources { |
| 1411 | home: Some(self.home.path().to_path_buf()), |
| 1412 | integrations_root: Ok(self.integrations()), |
| 1413 | integrations_root_overridden: false, |
| 1414 | workspace: Ok(workspace), |
| 1415 | install_source: "cargo".to_string(), |
| 1416 | } |
| 1417 | } |
| 1418 | |
| 1419 | /// Install `files` (relative to home) and write the receipt that |
| 1420 | /// records them as installed with the given content. |