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] |
Adam Snaider | 48a62f3 | 2023-10-02 15:49:23 -0700 | [diff] [blame] | 21 | clap = { version = "4.4", features = ["derive", "string"] } |
Brian Silverman | 0aa1373 | 2022-05-19 23:14:08 -0700 | [diff] [blame] | 22 | cxx = "1.0" |
| 23 | cxxbridge-macro = "1.0" |
Brian Silverman | 0aa1373 | 2022-05-19 23:14:08 -0700 | [diff] [blame] | 24 | uuid = "1.0" |
| 25 | toml = "0.5" |
| 26 | anyhow = "1.0" |
Brian Silverman | 53b0cfb | 2022-07-23 16:38:26 -0700 | [diff] [blame] | 27 | futures = "0.3" |
| 28 | once_cell = "1.13" |
| 29 | thiserror = "1.0" |
| 30 | bitflags = "1.3" |
| 31 | smallvec = "1.9" |
Brian Silverman | 0aa1373 | 2022-05-19 23:14:08 -0700 | [diff] [blame] | 32 | |
| 33 | # For bindgen. |
| 34 | bindgen = "0.58.1" |
| 35 | libloading = "=0.6.3" |
| 36 | |
| 37 | # Bazel toolchains take care of linking the C++ standard library, so don't add |
| 38 | # an extra flag via Rust by enabling the `nothing` feature. I'm not even sure |
| 39 | # it would end up on the link command line, but this crate's build.rs attempts |
| 40 | # to find a C++ compiler itself otherwise which definitely doesn't work. |
| 41 | link-cplusplus = { version = "1.0", features = ["nothing"] } |