https://github.com/ryanmcdermott/bazel-rust-template
https://github.com/ryanmcdermott/bazel-rust-template
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryanmcdermott/bazel-rust-template
- Owner: ryanmcdermott
- Created: 2022-05-02T03:59:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-02T04:00:15.000Z (over 3 years ago)
- Last Synced: 2024-10-21T21:06:47.324Z (about 1 year ago)
- Language: Starlark
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bazel-rust-template
This project is a simple starter template for a Rust project that uses the [Bazel build system](https://www.bazel.build/).
There is a main `rust_binary` that runs a simple `rust_library` that adds two numbers together. Additionally, there
is a `rust_test` target created for the adder library.
## Installation
First, ensure that you have [installed Bazel](https://bazel.build/install). Then run the following:
```
git clone https://github.com/ryanmcdermott/bazel-rust-template
```
## Running
### Main
```
bazel run src:main
```
### Tests
```
bazel test src/adder:adder_test
```