From 2899ae9767b2ac9e06d292658d85578de6ba65b4 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sun, 30 Jun 2024 09:52:45 -0400 Subject: [PATCH] builder: Note that `append_dir_all` doesn't hardlink I got caught out by this not generating hardlinks. At this point it's probably part of our "ABI", so just add a note in the docs. Signed-off-by: Colin Walters --- src/builder.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/builder.rs b/src/builder.rs index a26eb31d..3271eaf3 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -362,6 +362,11 @@ impl Builder { /// Also note that after all files have been written to an archive the /// `finish` function needs to be called to finish writing the archive. /// + /// # Hardlinks + /// + /// This function will never create hardlinks; to do that, you will + /// need to implement a custom recursive walk. + /// /// # Examples /// /// ```