summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Pignolet <20992787+MatthieuCoder@users.noreply.github.com>2021-08-04 22:04:34 +0400
committerMatthieu Pignolet <20992787+MatthieuCoder@users.noreply.github.com>2021-08-04 22:04:34 +0400
commit6076a73af79c66492f0f1b17b55c1eb2c98eb821 (patch)
tree85f1a85267a006472e78febfcbf1b3d82d243500
parent941a2a090d48e031cc14021aae07c5e76b4f770c (diff)
add rust project
-rw-r--r--.github/workflows/bazel-build.yml1
-rw-r--r--WORKSPACE14
-rw-r--r--rest-ratelimiter/src/main.rs4
3 files changed, 5 insertions, 14 deletions
diff --git a/.github/workflows/bazel-build.yml b/.github/workflows/bazel-build.yml
index e6325cd..d2affe8 100644
--- a/.github/workflows/bazel-build.yml
+++ b/.github/workflows/bazel-build.yml
@@ -42,6 +42,7 @@ jobs:
- name: Execute build script
run: |
bazel run //:gazelle
+ bazel run @cargo_raze//:raze -- --manifest-path=$(realpath rest-ralimiter/Cargo.toml)
bazel build //...
- name: Bazel artifacts
uses: actions/upload-artifact@v2
diff --git a/WORKSPACE b/WORKSPACE
index f1d6b9e..41e9ccb 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -66,20 +66,6 @@ go_repository(
version = "v1.22.0",
)
-go_repository(
- name = "org_golang_x_net",
- importpath = "golang.org/x/net",
- sum = "h1:oWX7TPOiFAMXLq8o0ikBYfCJVlRHBcsciT5bXOrH628=",
- version = "v0.0.0-20190311183353-d8887717615a",
-)
-
-go_repository(
- name = "org_golang_x_text",
- importpath = "golang.org/x/text",
- sum = "h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=",
- version = "v0.3.0",
-)
-
load("//:deps.bzl", "go_dependencies")
# gazelle:repository_macro deps.bzl%go_dependencies
diff --git a/rest-ratelimiter/src/main.rs b/rest-ratelimiter/src/main.rs
index e69de29..09525bc 100644
--- a/rest-ratelimiter/src/main.rs
+++ b/rest-ratelimiter/src/main.rs
@@ -0,0 +1,4 @@
+fn main() {
+ println!("Hello World!");
+}
+