From 83bcb9cb41a188b2e9ded89e613c4ff1642d52a5 Mon Sep 17 00:00:00 2001 From: Herrtian <70463940+Herrtian@users.noreply.github.com> Date: Fri, 29 May 2026 10:01:41 +0200 Subject: [PATCH] Document Windows antivirus checkout exclusion --- src/building/how-to-build-and-run.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/building/how-to-build-and-run.md b/src/building/how-to-build-and-run.md index 17c1ba716..fccc3600f 100644 --- a/src/building/how-to-build-and-run.md +++ b/src/building/how-to-build-and-run.md @@ -45,6 +45,12 @@ git clone https://github.com/rust-lang/rust.git cd rust ``` +> **NOTE**: On Windows, antivirus scanning can make Git and build commands +> noticeably slower in a large checkout. If that happens, consider adding only +> the Rust checkout directory to the +> [Windows Security exclusion list][windows-security-exclusions]. +> Avoid adding broader exclusions than needed. + ### Partial clone the repository Due to the size of the repository, cloning on a slower internet connection can take a long time, @@ -97,6 +103,7 @@ This chapter focuses on the basics to be productive, but if you want to learn more about `x.py`, [read this chapter][bootstrap]. [bootstrap]: ./bootstrapping/intro.md +[windows-security-exclusions]: https://support.microsoft.com/windows/add-an-exclusion-to-windows-security-811816c0-4dfd-af4a-47e4-c301afe13b26 Also, using `x` rather than `x.py` is recommended as: