Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add target for running rustfmt directly #2648

Merged
merged 1 commit into from
May 10, 2024

Conversation

illicitonion
Copy link
Collaborator

Previously you either needed to go via our bazel-aware wrapper, or write a rule to grab the file from the toolchain.

Previously you either needed to go via our bazel-aware wrapper, or write
a rule to grab the file from the toolchain.
@illicitonion illicitonion added this pull request to the merge queue May 10, 2024
Merged via the queue into bazelbuild:main with commit 4a3ffcb May 10, 2024
3 checks passed
alexeagle added a commit to aspect-build/rules_lint that referenced this pull request May 10, 2024
alexeagle added a commit to aspect-build/rules_lint that referenced this pull request May 10, 2024
* feat: add rustfmt

* update rules_rust to get bazelbuild/rules_rust#2648

* chore: rust in readme

* chore: rules_rust in WORKSPACE too

* fix: give correct flag to rustfmt check mode
rrbutani pushed a commit to bazel-contrib/toolchains_llvm that referenced this pull request May 10, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| rules_rust | bazel_dep | minor | `0.42.1` -> `0.44.0` |
| [rules_rust](https://togithub.com/bazelbuild/rules_rust) |
http_archive | minor | `0.43.0` -> `0.44.0` |

---

### Release Notes

<details>
<summary>bazelbuild/rules_rust (rules_rust)</summary>

###
[`v0.44.0`](https://togithub.com/bazelbuild/rules_rust/releases/tag/0.44.0)

[Compare
Source](https://togithub.com/bazelbuild/rules_rust/compare/0.43.0...0.44.0)

##### 0.44.0

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_rust",
    integrity = "sha256-pt9MIrs/tDVzpMQIjvbQ+v44oOzQ+FrSH/2IiAAzcDA=",
    urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.44.0/rules_rust-v0.44.0.tar.gz"],
)
```

Additional documentation can be found at:
https://bazelbuild.github.io/rules_rust/#setup

##### What's Changed

- Add target for running rustfmt directly by
[@&#8203;illicitonion](https://togithub.com/illicitonion) in
[bazelbuild/rules_rust#2648
- Release 0.44.0 by
[@&#8203;illicitonion](https://togithub.com/illicitonion) in
[bazelbuild/rules_rust#2649

**Full Changelog**:
bazelbuild/rules_rust@0.43.0...0.44.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/bazel-contrib/toolchains_llvm).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@illicitonion illicitonion deleted the raw-rustfmt branch May 11, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants