| commit | 6f65a04666d779b19a554db6843f1a3af11210a4 | [log] [tgz] |
|---|---|---|
| author | UebelAndre <github@uebelandre.com> | Wed Nov 06 09:35:51 2024 -0800 |
| committer | GitHub <noreply@github.com> | Wed Nov 06 17:35:51 2024 +0000 |
| tree | eaa0541b5a7ff6d2b1a118955dfa14a269d67401 | |
| parent | c4975831dd2fed42220a27d47c4cf24f8ebe8edf [diff] |
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<_, _>>();
// ...
// ...
// ...
}
```This repository provides rules for building Rust projects with Bazel.
General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust.
Please refer to the full documentation.