Skip to content

Commit

Permalink
Depend on remote-apis repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
freeformstu committed Jun 30, 2023
1 parent d3ea3d7 commit 74e5b08
Show file tree
Hide file tree
Showing 26 changed files with 60 additions and 3,624 deletions.
1 change: 1 addition & 0 deletions proto/prost/private/protoc_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ fn find_generated_rust_files(out_dir: &Path) -> BTreeSet<PathBuf> {
all_rs_files.insert(path);
}
} else if let Some(name) = path.file_name() {
// The filename is set to `_` when the package name is empty.
if name == "_" {
let rs_name = path.parent().expect("Failed to get parent").join("_.rs");
fs::rename(&path, &rs_name).unwrap_or_else(|err| {
Expand Down
32 changes: 32 additions & 0 deletions proto/prost/private/tests/bazel_remote_apis/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
load("@rules_rust//proto/prost:defs.bzl", "rust_prost_library", "rust_tonic_library")
load("//rust:defs.bzl", "rust_test")

rust_tonic_library(
name = "remote_execution_rs_proto",
proto = "@bazel_remote_apis//build/bazel/remote/execution/v2:remote_execution_proto",
visibility = ["//visibility:public"],
)

rust_test(
name = "remote_execution_test",
srcs = ["remote_execution_test.rs"],
edition = "2021",
deps = [
":remote_execution_rs_proto",
],
)

rust_prost_library(
name = "semver_rs_proto",
proto = "@bazel_remote_apis//build/bazel/semver:semver_proto",
visibility = ["//visibility:public"],
)

rust_test(
name = "semver_test",
srcs = ["semver_test.rs"],
edition = "2021",
deps = [
":semver_rs_proto",
],
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Tests the remote execution protos.
use remoteexecution_proto::build::bazel::remote::execution::v2::Digest;
use remote_execution_proto::build::bazel::remote::execution::v2::Digest;

#[test]
fn test_remote_execution() {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 74e5b08

Please sign in to comment.