Added utility library for parsing workspace status stamps. (#2982)

This change introduces a small utility for parsing workspace status
stamp files. I found similar snippets throughout projects I work on and
thought consolidation within `rules_rust` would be good. An example
usage can be seen here:

```rust
use workspace_status::parse_workspace_status_stamps;

fn main() {
    let stable_status = std::fs::read_to_string("bazel-out/stable-status.txt").unwrap();
    let volatile_status = std::fs::read_to_string("bazel-out/volatile-status.txt").unwrap();
    let stamps = parse_workspace_status_stamps(&stable_status)
                .chain(parse_workspace_status_stamps(&stable_status))
                .flatten()
                .collect::<BTreeMap<_, _>>();
    // ...
    // ...
    // ...
}
```
2 files changed
tree: eaa0541b5a7ff6d2b1a118955dfa14a269d67401
  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. .bazelversion
  20. .clang-format
  21. .clippy.toml
  22. .envrc
  23. .gitattributes
  24. .gitignore
  25. .prettierrc.toml
  26. .rustfmt.toml
  27. ARCHITECTURE.md
  28. AUTHORS
  29. BUILD.bazel
  30. buildifier
  31. CODEOWNERS
  32. COMPATIBILITY.md
  33. CONTRIBUTING.md
  34. CONTRIBUTORS
  35. LICENSE.txt
  36. MODULE.bazel
  37. README.md
  38. version.bzl
  39. 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.