Brian Silverman | 0aa1373 | 2022-05-19 23:14:08 -0700 | [diff] [blame] | 1 | [package] |
| 2 | name = "compile_with_bazel" |
| 3 | version = "0.0.0" |
| 4 | |
| 5 | # Mandatory (or Cargo tooling is unhappy) |
| 6 | [lib] |
| 7 | path = "fake_lib.rs" |
| 8 | |
| 9 | [workspace] |
| 10 | members = [ |
| 11 | "third_party/autocxx", |
| 12 | "third_party/autocxx/engine", |
| 13 | "third_party/autocxx/parser", |
| 14 | "third_party/autocxx/gen/cmd", |
| 15 | "third_party/autocxx/macro", |
| 16 | "third_party/autocxx/integration-tests", |
| 17 | "third_party/flatbuffers/rust/flatbuffers", |
| 18 | ] |
| 19 | |
| 20 | [dependencies] |
| 21 | cxx = "1.0" |
| 22 | cxxbridge-macro = "1.0" |
Brian Silverman | 0aa1373 | 2022-05-19 23:14:08 -0700 | [diff] [blame] | 23 | uuid = "1.0" |
| 24 | toml = "0.5" |
| 25 | anyhow = "1.0" |
Brian Silverman | 53b0cfb | 2022-07-23 16:38:26 -0700 | [diff] [blame] | 26 | futures = "0.3" |
| 27 | once_cell = "1.13" |
| 28 | thiserror = "1.0" |
| 29 | bitflags = "1.3" |
| 30 | smallvec = "1.9" |
Brian Silverman | 0aa1373 | 2022-05-19 23:14:08 -0700 | [diff] [blame] | 31 | |
| 32 | # For bindgen. |
| 33 | bindgen = "0.58.1" |
| 34 | libloading = "=0.6.3" |
| 35 | |
| 36 | # Bazel toolchains take care of linking the C++ standard library, so don't add |
| 37 | # an extra flag via Rust by enabling the `nothing` feature. I'm not even sure |
| 38 | # it would end up on the link command line, but this crate's build.rs attempts |
| 39 | # to find a C++ compiler itself otherwise which definitely doesn't work. |
| 40 | link-cplusplus = { version = "1.0", features = ["nothing"] } |