1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-08-11 01:12:11 +02:00
Files
.github
mdbook-course
mdbook-exerciser
po
src
theme
third_party
cxx
blobstore
include
src
Android.bp
BUILD
Cargo.toml
build.rs
book
LICENSE-APACHE
LICENSE-MIT
README.md
overview.svg
mdbook
rust-by-example
rust-on-exercism
.gitignore
CONTRIBUTING.md
Cargo.lock
Cargo.toml
LICENSE
README.md
STYLE.md
TRANSLATIONS.md
aspect-ratio-helper.py
book.toml
dprint.json
rustfmt.toml
comprehensive-rust/third_party/cxx/blobstore/BUILD

36 lines
691 B
Python
Raw Normal View History

load("@rules_cc//cc:defs.bzl", "cc_library")
load("@rules_rust//rust:defs.bzl", "rust_binary")
load("//tools/bazel:rust_cxx_bridge.bzl", "rust_cxx_bridge")
rust_binary(
name = "demo",
srcs = glob(["src/**/*.rs"]),
edition = "2021",
deps = [
":blobstore-sys",
":bridge",
"//:cxx",
],
)
rust_cxx_bridge(
name = "bridge",
src = "src/main.rs",
deps = [":blobstore-include"],
)
cc_library(
name = "blobstore-sys",
srcs = ["src/blobstore.cc"],
deps = [
":blobstore-include",
":bridge/include",
],
)
cc_library(
name = "blobstore-include",
hdrs = ["include/blobstore.h"],
deps = ["//:core"],
)