summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
author Abhishek Pandit-Subedi <abhishekpandit@chromium.org> 2021-03-15 13:54:19 -0700
committer Abhishek Pandit-Subedi <abhishekpandit@google.com> 2021-05-03 22:29:53 +0000
commit83f3ba1f6d4a35ba3e3212a1c3d93763d675a12d (patch)
tree4ac13ae5576eb4194aa76c327f2d691e96803c32 /Cargo.toml
parentd1895cee1b8f3c2499d5bee6526ed70087d6ea34 (diff)
Add rust binaries to link with C++ staticlib
Rather than using C++ binaries to link with Rust staticlib, we do it the other way around. This allows us to write our dbus frontend with Rust instead. Bug: 179821440 Tag: #floss Test: atest --host bluetooth_test_gd Change-Id: I63037e0aaea152a4855e0a49971c1b2f9c312ac5
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml48
1 files changed, 6 insertions, 42 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 2b60ccb125..ac01a99133 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,46 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-[package]
-name = "bt_shim_ffi"
-version = "0.0.1"
-edition = "2018"
+[workspace]
-[dependencies]
-# BT dependencies
-bt_common = { path = "gd/rust/common" }
-bt_facade_helpers = { path = "gd/rust/facade" }
-bt_hal = { path = "gd/rust/hal" }
-bt_hci = { path = "gd/rust/hci" }
-bt_main = { path = "gd/rust/main" }
-bt_packets = { path = "gd/rust/packets" }
-
-# All external dependencies. Keep all versions at build/rust/Cargo.toml
-bindgen = "0.51"
-bytes = "1.0"
-cxx = { version = "0.5.9", features = ["c++17"] }
-env_logger = "0.8"
-futures = "0.3"
-grpcio = { version = "0.7", features = ["protobuf", "protobuf-codec", "openssl"] }
-grpcio-sys = { version = "*", features = ["openssl"] }
-lazy_static = "1.4"
-log = "0.4"
-nix = "0.19"
-num-derive = "0.3"
-num-traits = "0.2"
-paste = "1.0"
-proc-macro2 = "1.0.24"
-protobuf = "2.0"
-protoc-grpcio = "2.0"
-protoc-rust = "2.0"
-quote = "1.0.8"
-thiserror = "1.0"
-syn = { version = "1.0.58", features = ['default', 'full'] }
-tokio = { version = "1.0", features = ['bytes', 'fs', 'io-util', 'libc', 'macros', 'memchr', 'mio', 'net', 'num_cpus', 'rt', 'rt-multi-thread', 'sync', 'time', 'tokio-macros'] }
-tokio-stream = "0.1"
-walkdir = "2.2"
-
-
-[lib]
-path = "gd/rust/shim/src/lib.rs"
-crate-type = ["staticlib"]
+members = [
+ "gd/rust/shim",
+ "gd/rust/linux/mgmt",
+ "gd/rust/linux/adapter",
+]