Added debug logging for spliced manifests to crate_universe (#2629)

This adds the following new logging when `CARGO_BAZEL_DEBUG=1` is
enabled in the environment when the repository rule runs.
```
cd test/no_std && CARGO_BAZEL_REPIN=1 CARGO_BAZEL_DEBUG=1 bazel sync --only=no_std_crate_index
```
````
...
...
Splice 2024-04-27T16:31:48.249675Z DEBUG write_registry_urls_and_feature_map: cargo_bazel::splicing::splicer: Writing Cargo manifest '/private/var/tmp/_bazel_user/427c86c43c8db37f50959419e7306f4e/external/no_std_crate_index/splicing-workspace/Cargo.toml':
```toml
[dependencies.libc_alloc]
version = "1.0.3"

[lib]
name = "direct_cargo_bazel_deps"
path = ".direct_cargo_bazel_deps.rs"
required-features = []

[package]
edition = "2018"
name = "direct-cargo-bazel-deps"
version = "0.0.1"

[workspace]
members = []
resolver = "2"

[workspace.metadata.cargo-bazel.features."direct-cargo-bazel-deps
0.0.1"]
common = []

[workspace.metadata.cargo-bazel.features."direct-cargo-bazel-deps
0.0.1".selects]

[workspace.metadata.cargo-bazel.features."libc_alloc 1.0.4"]
common = []

[workspace.metadata.cargo-bazel.features."libc_alloc 1.0.4".selects]

[workspace.metadata.cargo-bazel.package_prefixes]

[workspace.metadata.cargo-bazel.sources."libc_alloc 1.0.4"]
sha256 =
"6a090348b66d90d8507e30f0d2bd88e5a5c454bd1733fc6d617cbc3471bf69ea"
url = "https://static.crates.io/crates/libc_alloc/1.0.4/download"
```
...
...
````
3 files changed
tree: d5abe7b9e34a88935b4bb81ffb18776a1974df41
  1. .bazelci/
  2. .bcr/
  3. .github/
  4. bindgen/
  5. cargo/
  6. crate_universe/
  7. docs/
  8. examples/
  9. ffi/
  10. nix/
  11. proto/
  12. rust/
  13. test/
  14. tools/
  15. util/
  16. wasm_bindgen/
  17. .bazelignore
  18. .bazelrc
  19. .clang-format
  20. .envrc
  21. .gitattributes
  22. .gitignore
  23. .prettierrc.toml
  24. .rustfmt.toml
  25. ARCHITECTURE.md
  26. AUTHORS
  27. BUILD.bazel
  28. CODEOWNERS
  29. COMPATIBILITY.md
  30. CONTRIBUTING.md
  31. CONTRIBUTORS
  32. LICENSE.txt
  33. MODULE.bazel
  34. README.md
  35. version.bzl
  36. WORKSPACE.bazel
README.md

Rust Rules

  • Postsubmit Build status

Overview

This repository provides rules for building Rust projects with Bazel.

Community

General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust.

Documentation

Please refer to the full documentation.