diff options
author | David Tolnay <dtolnay@gmail.com> | 2023-08-13 11:53:02 -0700 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2023-08-13 11:53:02 -0700 |
commit | 23731630c6e37acdf41b894e83c813d7e2b1495e (patch) | |
tree | 2d66c184eb9c2456d2ad817b965e43c68929128c | |
parent | 2ecd13bfe1979a22a3d1571744d1cdf016767dbd (diff) | |
download | cxx-23731630c6e37acdf41b894e83c813d7e2b1495e.tar.gz |
Add bazel annotations as Cargo.toml package metadata
-rw-r--r-- | Cargo.toml | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -47,6 +47,22 @@ members = ["demo", "flags", "gen/build", "gen/cmd", "gen/lib", "macro", "tests/f targets = ["x86_64-unknown-linux-gnu"] rustdoc-args = ["--cfg", "doc_cfg", "--generate-link-to-definition"] +[package.metadata.bazel] +additive_build_file_content = """ +cc_library( + name = "cxx_cc", + srcs = ["src/cxx.cc"], + hdrs = ["include/cxx.h"], + include_prefix = "rust", + includes = ["include"], + linkstatic = True, + strip_include_prefix = "include", + visibility = ["//visibility:public"], +) +""" +extra_aliased_targets = { cxx_cc = "cxx_cc" } +gen_build_script = false + [patch.crates-io] cxx = { path = "." } cxx-build = { path = "gen/build" } |