bazelbuild / bazelbuild/rules_rust
How to use trunk crate/cli using rules_rust
- Dominant language
- Starlark
- Stars
- 843
- Forks
- 651
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 15
Description
I've got rules_rust all setup and working for [my personal website here](https://github.com/flynneva/flynn_labs) that id like to b build it as a static site and deploy the built `dist/` folder - built with [`trunk build`](https://trunkrs.dev/).
I'm using the latest `rules_rust` release I think and `bzlmod` too using the `from_cargo` approach to pull in crates.
The problem im getting to is if I try and add the `trunk` crate to the `Cargo.toml` file and run `bazel query @crates//...`...its not listed for some reason.
I think its because the crate only provides an "installable" CLI binary and not an actual library.
Is there a way to somehow get this `trunk` CLI executable as a Bazel target, without having to break hermicity/still pull it in using `rules_rust`? I couldn't find an example of this situation anywhere in the `rules_rust` docs unfortunately...thats why im asking here.
Thanks in advanced 🙏🏼
Contributor guide
Assessment
This issue has not been assessed yet.