https://github.com/ryanmcdermott/bazel-rust-proto
Template for a Rust project using Bazel and Protocol Buffers
https://github.com/ryanmcdermott/bazel-rust-proto
Last synced: 5 months ago
JSON representation
Template for a Rust project using Bazel and Protocol Buffers
- Host: GitHub
- URL: https://github.com/ryanmcdermott/bazel-rust-proto
- Owner: ryanmcdermott
- Created: 2022-12-10T05:04:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T05:21:12.000Z (over 3 years ago)
- Last Synced: 2024-10-21T21:06:22.844Z (over 1 year ago)
- Language: Starlark
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bazel-rust-proto
This is a demo of how to use Bazel to build a Rust project that depends on a proto library.
## Installation
First, ensure that you have:
- [Installed Bazel](https://bazel.build/install)
- [Installed Rust](https://www.rust-lang.org/tools/install)
- [Installed Cargo Raze](https://github.com/google/cargo-raze)
Then run the following:
```
git clone https://github.com/ryanmcdermott/bazel-rust-proto
cd bazel-rust-proto
cargo generate-lockfile && cargo raze
```
## Running
```
bazel run //project/src:main
```