Skip to content

Commit

Permalink
fix: add cc_library
Browse files Browse the repository at this point in the history
  • Loading branch information
opicaud committed Mar 2, 2023
1 parent 11db1a7 commit 93d658f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rust/pact_ffi/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cargo_build_script(
deps = all_crate_deps(package_name = "pact_ffi") + ["@crate_index//:os_info"],
)
rust_shared_library(
name = "pact_ffi",
name = "pact_ffi_lib",
srcs = glob(
["src/**/*.rs"]
),
Expand All @@ -22,4 +22,12 @@ rust_shared_library(
"//pact_verifier",
"//pact_mock_server"]
+ all_crate_deps(package_name = "pact_ffi") + [":build"],
visibility = ["//visibility:public"],
)

cc_library(
name = "pact_ffi",
deps = [":pact_ffi_lib"],
linkstatic=1,
visibility = ["//visibility:public"],
)

0 comments on commit 93d658f

Please sign in to comment.