Skip to content

Commit

Permalink
Set visibility to private , run formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfarrugi committed Mar 3, 2018
1 parent e7d2916 commit 8cbf0c5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/ffi/c_calling_rust/BUILD
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
package(default_visibility = ["//visibility:private"])

load("@//rust:rust.bzl", "rust_library", "rust_test", "rust_binary")

rust_library(
name = "rusty",
srcs = ["lib.rs"],
crate_type = "staticlib",
srcs = ["lib.rs"]
)

# cc_* rules expect cc_* deps, so we need to wrap our rust staticlib.
cc_library(
name = "wrapper",
srcs = [":rusty"]
srcs = [":rusty"],
)

cc_test(
name = "main",
srcs = ["main.c"],
deps = [":wrapper"]
deps = [":wrapper"],
)

0 comments on commit 8cbf0c5

Please sign in to comment.