Skip to content

Commit

Permalink
Added tracing (logging) to crate_universe (#2224)
Browse files Browse the repository at this point in the history
The `CARGO_BAZEL_DEBUG` environment variable will now activate verbose
logging for the `cargo_bazel` binary (aka, in `crates_repository` and
`crates_vendor` rules). An example of the output looks like the
following:
```
~/Code/repro-cargo-bazel-lock-issue (main ✗) CARGO_BAZEL_DEBUG=1 REPIN=1 bazel build ...
Splice 2023-10-29T22:18:42.240171Z DEBUG LockGenerator::generate: cargo_bazel::metadata: Generating Cargo Lockfile for /private/var/tmp/_bazel_user/0c9b227e7e0599ba0ec95785817f1b2a/external/crate_index/splicing-workspace/Cargo.toml
Splice 2023-10-29T22:18:42.240217Z DEBUG LockGenerator::generate: cargo_bazel::metadata: Using existing lock /Users/user/Code/repro-cargo-bazel-lock-issue/Cargo.lock
Splice 2023-10-29T22:18:44.424638Z DEBUG FeatureGenerator::generate: cargo_bazel::metadata: Generating features for manifest /private/var/tmp/_bazel_user/0c9b227e7e0599ba0ec95785817f1b2a/external/crate_index/splicing-workspace/Cargo.toml
Splice 2023-10-29T22:18:44.424645Z DEBUG FeatureGenerator::generate: cargo_bazel::metadata: Spawning processes for {"aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-fuchsia", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasi", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-fuchsia", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu", "x86_64-unknown-none"}
Splice 2023-10-29T22:18:44.734294Z DEBUG FeatureGenerator::generate: cargo_bazel::metadata: Process complete for aarch64-apple-darwin
Splice 2023-10-29T22:18:44.734398Z DEBUG FeatureGenerator::generate: cargo_bazel::metadata: 	For anyhow 1.0.75 features were: {"default", "std"}
Splice 2023-10-29T22:18:44.734424Z DEBUG FeatureGenerator::generate: cargo_bazel::metadata: 	For autocfg 1.1.0 features were: {}
Splice 2023-10-29T22:18:44.734426Z DEBUG FeatureGenerator::generate: cargo_bazel::metadata: 	For base64 0.21.5 features were: {"alloc", "default", "std"}
Splice 2023-10-29T22:18:44.734430Z DEBUG FeatureGenerator::generate: cargo_bazel::metadata: 	For bitflags 2.4.1 features were: {"std"}
Splice 2023-10-29T22:18:44.734431Z DEBUG FeatureGenerator::generate: cargo_bazel::metadata: 	For bytes 1.5.0 features were: {"default", "std"}
```
  • Loading branch information
UebelAndre authored Oct 30, 2023
1 parent 03a9088 commit bbd207b
Show file tree
Hide file tree
Showing 23 changed files with 1,209 additions and 13 deletions.
12 changes: 12 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.log-0.4.19.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 90 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.nu-ansi-term-0.46.0.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 76 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.overload-0.1.1.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 76 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.pin-project-lite-0.2.13.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 79 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.sharded-slab-0.1.7.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.syn-2.0.25.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bbd207b

Please sign in to comment.