Don't apply `name_to_crate_name` to test binary names. (#670)

Normal `rust_binary` targets don't do this, so for consistency, don't do it in tests either.

An additional motivation for this change is that I'm trying to whittle down the number of uses of the `name_to_crate_name` function, as it doesn't take a possible `crate_name` attribute into account. For context, see also the changes and discussion in

https://github.com/bazelbuild/rules_rust/pull/645
1 file changed
tree: 0c291dd9a558a2f610e1bb8af54ffcf9d3170bab
  1. .bazelci/
  2. bindgen/
  3. cargo/
  4. crate_universe/
  5. docs/
  6. examples/
  7. proto/
  8. rust/
  9. test/
  10. tools/
  11. util/
  12. wasm_bindgen/
  13. .bazelignore
  14. .gitignore
  15. ARCHITECTURE.md
  16. AUTHORS
  17. BUILD.bazel
  18. CODEOWNERS
  19. CONTRIBUTING.md
  20. CONTRIBUTORS
  21. LICENSE.txt
  22. README.md
  23. WORKSPACE.bazel
  24. workspace.bzl
README.md

Rust Rules

  • Postsubmit Build status
  • Postsubmit + Current Bazel Incompatible Flags Build status

Overview

This repository provides rules for building Rust projects with Bazel.

Community

Please refer to the full documentation.