Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
636 B
30 lines
636 B
# This package contains Rust protobuf runtime implementation built on top of UPB. |
|
|
|
load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test") |
|
|
|
rust_library( |
|
name = "upb", |
|
srcs = ["upb.rs"], |
|
visibility = [ |
|
"//src/google/protobuf:__subpackages__", |
|
"//rust:__subpackages__", |
|
], |
|
deps = [":upb_c_api"], |
|
) |
|
|
|
rust_test( |
|
name = "upb_test", |
|
crate = ":upb", |
|
tags = [ |
|
# TODO(b/270274576): Enable testing on arm once we have a Rust Arm toolchain. |
|
"not_build:arm", |
|
], |
|
) |
|
|
|
cc_library( |
|
name = "upb_c_api", |
|
srcs = ["upb_api.c"], |
|
deps = [ |
|
"@upb//:upb", |
|
], |
|
)
|
|
|