Add additional logging to build_rust.py

When parsing the output of build_rust.py, it's difficult to tell where
the boundaries are between the different sub-builds. This adds some
logging messages to make it clear where one stops and the next begins.

Bug: 407563488
Change-Id: I38f59ce3903837a5e62832b6218f73698f9997f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7000567
Commit-Queue: Devon Loehr <dloehr@google.com>
Reviewed-by: Arthur Eubanks <aeubanks@google.com>
Cr-Commit-Position: refs/heads/main@{#1522949}
NOKEYCHECK=True
GitOrigin-RevId: c0396c23293e2c41eb29b61e3585b205d26047d9
diff --git a/build_rust.py b/build_rust.py
index fcba416..d069a60 100755
--- a/build_rust.py
+++ b/build_rust.py
@@ -756,10 +756,10 @@
     args, rest = parser.parse_known_args()
 
     if args.entire_toolchain:
-      args.build_bindgen = True
-      args.build_vet = True
-      args.build_crubit = True
-      args.gnrt_stdlib = True
+        args.build_bindgen = True
+        args.build_vet = True
+        args.build_crubit = True
+        args.gnrt_stdlib = True
 
     if sys.platform == 'win32':
         if args.sh:
@@ -948,6 +948,7 @@
               'w',
               encoding='utf-8') as log:
         if args.build_bindgen:
+            print('Building bindgen...')
             build_cmd = [
                 sys.executable,
                 os.path.join(THIS_DIR, 'build_bindgen.py')
@@ -955,6 +956,7 @@
             TeeCmd(build_cmd, log)
 
         if args.build_vet:
+            print('Building vet...')
             build_cmd = [
                 sys.executable,
                 os.path.join(THIS_DIR, 'build_vet.py')
@@ -962,6 +964,7 @@
             TeeCmd(build_cmd, log)
 
         if args.build_crubit:
+            print('Building crubit...')
             build_cmd = [
                 sys.executable,
                 os.path.join(THIS_DIR, 'build_crubit.py')
@@ -972,7 +975,9 @@
             TeeCmd(build_cmd, log, fail_hard=False)
 
         if args.gnrt_stdlib:
+            print('Building gnrt...')
             InstallRustBetaSysroot(checkout_revision, [RustTargetTriple()])
+            print('Beta sysroot installed.')
             build_cmd = [
                 sys.executable,
                 os.path.join(THIS_DIR, 'gnrt_stdlib.py'), '--skip-prep'