Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

* make `Crate::copy_source_to` public.

## [0.22.0] - 2026-04-01

* **BREAKING**: replace lazy_static with LazyLock, add MSRV to what is in the code
Expand Down
5 changes: 4 additions & 1 deletion src/crates/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ impl Crate {
}
}

pub(crate) fn copy_source_to(&self, workspace: &Workspace, dest: &Path) -> anyhow::Result<()> {
/// copy the source of this crate to the specified destination path.
///
/// Will delete the target directory if it already exists.
pub fn copy_source_to(&self, workspace: &Workspace, dest: &Path) -> anyhow::Result<()> {
if dest.exists() {
info!(
"crate source directory {} already exists, cleaning it up",
Expand Down