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

Tonic/Prost Rules - Take 2 #595

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ load("@rules_rust//rust:repositories.bzl", "rust_repositories")
rust_repositories()

load("@rules_rust//proto:repositories.bzl", "rust_proto_repositories")
load("@rules_rust//proto/prostgen:repositories.bzl", "rust_prostgen_repositories", "rust_prostgen_test_repositories")

rust_proto_repositories()

rust_prostgen_repositories()

rust_prostgen_test_repositories()

load("@rules_rust//bindgen:repositories.bzl", "rust_bindgen_repositories")

rust_bindgen_repositories()
Expand Down
9 changes: 9 additions & 0 deletions examples/examples_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ load("@examples//hello_sys/raze:crates.bzl", "rules_rust_examples_hello_sys_fetc
load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependencies")
load("@rules_rust//bindgen:repositories.bzl", "rust_bindgen_repositories")
load("@rules_rust//proto:repositories.bzl", "rust_proto_repositories")
load("@rules_rust//proto/prostgen:repositories.bzl", "rust_prostgen_repositories")
load("@rules_rust//rust:repositories.bzl", "rust_repositories", "rust_repository_set")
load("@rules_rust//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_repositories")
load("@rules_rust//tools/rust_analyzer/raze:crates.bzl", "rules_rust_tools_rust_analyzer_fetch_remote_crates")
load("@examples//prostgen/raze:crates.bzl", "rules_rust_examples_prostgen_fetch_remote_crates")

def deps():
"""Define dependencies for `rules_rust` examples"""
Expand All @@ -21,6 +24,10 @@ def deps():

rust_proto_repositories()

rust_prostgen_repositories()

rules_rust_tools_rust_analyzer_fetch_remote_crates()

# Example of `rust_repository_set`
rust_repository_set(
name = "fake_toolchain_for_test_of_sha256",
Expand All @@ -40,6 +47,8 @@ def deps():

rules_rust_examples_complex_sys_repositories()

rules_rust_examples_prostgen_fetch_remote_crates()

maybe(
http_archive,
name = "libc",
Expand Down
8 changes: 8 additions & 0 deletions examples/prostgen/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
load("@rules_proto//proto:defs.bzl", "proto_library")

package(default_visibility = ["//prostgen:__subpackages__"])

proto_library(
name = "common",
srcs = ["common.proto"],
)
Loading