Skip to content
Snippets Groups Projects
Commit 79571538 authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi
Browse files

floss: Add versions to all Cargo.toml dependencies

Replace all '*' dependencies with numerical dependencies. Using '*' is
not recommended and it interferes with our vendored repo from having
multiple major versions of the same library.

Bug: 264711862
Tag: #floss
Test: ./floss/build/build-in-podman.py

Change-Id: Idb241ab94587bd7929bf5e7b20c473e7b359fbc9
parent 925d7340
No related branches found
No related tags found
No related merge requests found
...@@ -19,20 +19,20 @@ version = "0.0.1" ...@@ -19,20 +19,20 @@ version = "0.0.1"
edition = "2018" edition = "2018"
[dependencies] [dependencies]
cxx = "*" cxx = "1.0"
env_logger = "*" env_logger = "0.8"
futures = "0.3.13" futures = "0.3.13"
grpcio = "*" grpcio = "0.9"
lazy_static = "*" lazy_static = "1.4"
log = "*" log = "0.4"
nix = "*" nix = "0.19"
tokio = { version = "*", features = ['bytes', 'macros', 'net', 'rt-multi-thread', 'time'] } tokio = { version = "1.0", features = ['bytes', 'macros', 'net', 'rt-multi-thread', 'time'] }
# Proc Macro dependency # Proc Macro dependency
paste = "*" paste = "1.0"
[dev-dependencies] [dev-dependencies]
tokio = { version = "*", features = ['bytes', 'macros', 'net', 'rt-multi-thread', 'time', 'sync'] } tokio = { version = "1.0", features = ['bytes', 'macros', 'net', 'rt-multi-thread', 'time', 'sync'] }
[lib] [lib]
crate-type = ["rlib"] crate-type = ["rlib"]
...@@ -24,18 +24,18 @@ bt_facade_proto = { path = "../facade_proto" } ...@@ -24,18 +24,18 @@ bt_facade_proto = { path = "../facade_proto" }
bt_packets = { path = "../packets" } bt_packets = { path = "../packets" }
# External deps # External deps
bytes = "*" bytes = "1.0"
cxx = "*" cxx = "1.0"
futures = "*" futures = "0.3"
grpcio = "*" grpcio = "0.9"
log = "*" log = "0.4"
protobuf = "2.0" protobuf = "2.0"
tokio = "*" tokio = "1.0"
# Binary-only deps # Binary-only deps
clap = "*" clap = "3.0"
lazy_static = "*" lazy_static = "1.0"
nix = "*" nix = "0.19"
bt_common = { path = "../common" } bt_common = { path = "../common" }
......
...@@ -23,13 +23,13 @@ edition = "2018" ...@@ -23,13 +23,13 @@ edition = "2018"
bt_facade_proto = { path = "../../facade_proto" } bt_facade_proto = { path = "../../facade_proto" }
# External deps # External deps
bytes = "*" bytes = "1.0"
cxx = "*" cxx = "1.0"
futures = "*" futures = "0.3"
grpcio = "*" grpcio = "0.9"
log = "*" log = "0.4"
protobuf = "2.0" protobuf = "2.0"
tokio = "*" tokio = "1.0"
[lib] [lib]
path = "lib.rs" path = "lib.rs"
......
...@@ -20,13 +20,13 @@ edition = "2018" ...@@ -20,13 +20,13 @@ edition = "2018"
build = "build.rs" build = "build.rs"
[dependencies] [dependencies]
futures = "*" futures = "0.3"
grpcio = "*" grpcio = "0.9"
protobuf = "2.0" protobuf = "2.0"
[build-dependencies] [build-dependencies]
protoc-rust = "*" protoc-rust = "2.0"
protoc-grpcio = "*" protoc-grpcio = "2.0"
protobuf-codegen = "2.0" protobuf-codegen = "2.0"
[lib] [lib]
......
...@@ -21,9 +21,9 @@ edition = "2018" ...@@ -21,9 +21,9 @@ edition = "2018"
[dependencies] [dependencies]
gddi_macros = { path = "macros" } gddi_macros = { path = "macros" }
tokio = { version = "*", features = ['bytes', 'net', 'sync'] } tokio = { version = "1.0", features = ['bytes', 'net', 'sync'] }
quote = "*" quote = "1.0"
syn = { version = "*", features = ['default', 'full'] } syn = { version = "1.0", features = ['default', 'full'] }
[lib] [lib]
path = "src/lib.rs" path = "src/lib.rs"
......
...@@ -19,9 +19,9 @@ version = "0.0.1" ...@@ -19,9 +19,9 @@ version = "0.0.1"
edition = "2018" edition = "2018"
[dependencies] [dependencies]
proc-macro2 = "*" proc-macro2 = "1.0"
quote = "*" quote = "1.0"
syn = "*" syn = "1.0"
[lib] [lib]
proc-macro = true proc-macro = true
......
...@@ -18,7 +18,7 @@ dbus_projection = { path = "../dbus_projection" } ...@@ -18,7 +18,7 @@ dbus_projection = { path = "../dbus_projection" }
dbus_macros = { path = "../dbus_projection/dbus_macros" } dbus_macros = { path = "../dbus_projection/dbus_macros" }
futures = "0.3.13" futures = "0.3.13"
num-traits = "*" num-traits = "0.2"
tokio = { version = "1", features = ['bytes', 'fs', 'io-util', 'libc', 'macros', 'memchr', 'mio', 'net', 'num_cpus', 'rt', 'rt-multi-thread', 'sync', 'time', 'tokio-macros'] } tokio = { version = "1", features = ['bytes', 'fs', 'io-util', 'libc', 'macros', 'memchr', 'mio', 'net', 'num_cpus', 'rt', 'rt-multi-thread', 'sync', 'time', 'tokio-macros'] }
clap = "2.33.3" clap = "2.33.3"
......
...@@ -23,9 +23,9 @@ dbus_macros = { path = "../dbus_projection/dbus_macros" } ...@@ -23,9 +23,9 @@ dbus_macros = { path = "../dbus_projection/dbus_macros" }
env_logger = "0.8.3" env_logger = "0.8.3"
futures = "0.3.13" futures = "0.3.13"
glob = "0.3.0" glob = "0.3.0"
inotify = "*" inotify = "0.9"
log = "0.4.14" log = "0.4.14"
nix = "*" nix = "0.19"
num-traits = "0.2" num-traits = "0.2"
protobuf = "2.0" protobuf = "2.0"
regex = "1.5" regex = "1.5"
...@@ -35,7 +35,7 @@ tokio = { version = "1.0", features = ["fs", "macros", "rt-multi-thread", "sync" ...@@ -35,7 +35,7 @@ tokio = { version = "1.0", features = ["fs", "macros", "rt-multi-thread", "sync"
[build-dependencies] [build-dependencies]
pkg-config = "0.3.19" pkg-config = "0.3.19"
protoc-rust = "*" protoc-rust = "2.0"
[[bin]] [[bin]]
name = "btmanagerd" name = "btmanagerd"
......
...@@ -19,7 +19,7 @@ futures = "0.3.13" ...@@ -19,7 +19,7 @@ futures = "0.3.13"
lazy_static = "1.4" lazy_static = "1.4"
log = "0.4.14" log = "0.4.14"
nix = "0.19" nix = "0.19"
num-traits = "*" num-traits = "0.2"
tokio = { version = "1", features = ['bytes', 'fs', 'io-util', 'libc', 'macros', 'memchr', 'mio', 'net', 'num_cpus', 'rt', 'rt-multi-thread', 'sync', 'time', 'tokio-macros'] } tokio = { version = "1", features = ['bytes', 'fs', 'io-util', 'libc', 'macros', 'memchr', 'mio', 'net', 'num_cpus', 'rt', 'rt-multi-thread', 'sync', 'time', 'tokio-macros'] }
syslog = "4.0" syslog = "4.0"
......
...@@ -21,12 +21,12 @@ build = "build.rs" ...@@ -21,12 +21,12 @@ build = "build.rs"
[dependencies] [dependencies]
bindgen = "*" bindgen = "0.59"
bytes = "*" bytes = "1.0"
num-derive = "*" num-derive = "0.3"
num-traits = "*" num-traits = "0.2"
thiserror = "*" thiserror = "1.0"
walkdir = "*" walkdir = "2.2"
[lib] [lib]
path = "lib.rs" path = "lib.rs"
......
...@@ -26,9 +26,9 @@ bluetooth_rs = { path = "../stack" } ...@@ -26,9 +26,9 @@ bluetooth_rs = { path = "../stack" }
bt_packets = { path = "../packets" } bt_packets = { path = "../packets" }
# All external dependencies. Keep all versions at build/rust/Cargo.toml # All external dependencies. Keep all versions at build/rust/Cargo.toml
bindgen = "0.57" bindgen = "0.59"
bytes = "1.0" bytes = "1.0"
cxx = { version = "=1.0.42", features = ["c++17"] } cxx = { version = "1.0.42", features = ["c++17"] }
env_logger = "0.8" env_logger = "0.8"
futures = "0.3" futures = "0.3"
grpcio = { version = "0.9", features = ["protobuf", "protobuf-codec", "openssl"] } grpcio = { version = "0.9", features = ["protobuf", "protobuf-codec", "openssl"] }
......
...@@ -27,22 +27,22 @@ bt_packets = { path = "../packets" } ...@@ -27,22 +27,22 @@ bt_packets = { path = "../packets" }
gddi = { path = "../gddi" } gddi = { path = "../gddi" }
# External dependencies # External dependencies
bytes = "*" bytes = "1.0"
cxx = "*" cxx = "1.0"
futures = "*" futures = "0.3"
grpcio = "*" grpcio = "0.9"
lazy_static = "*" lazy_static = "1.4"
log = "*" log = "0.4"
nix = "*" nix = "0.19"
num-traits = "*" num-traits = "0.2"
protobuf = "2.0" protobuf = "2.0"
thiserror = "*" thiserror = "1.0"
tokio = "*" tokio = "1.0"
tokio-stream = "*" tokio-stream = "0.1"
walkdir = "*" walkdir = "2.2"
# Macro dependencies # Macro dependencies
num-derive = "*" num-derive = "0.3"
[lib] [lib]
crate-type = ["rlib"] crate-type = ["rlib"]
...@@ -7,7 +7,7 @@ edition = "2021" ...@@ -7,7 +7,7 @@ edition = "2021"
[dependencies] [dependencies]
clap = { version = "3.1.3", features = ["derive"] } clap = { version = "3.1.3", features = ["derive"] }
aes = "*" aes = "0.8"
rand = "*" rand = "0.8"
[workspace] [workspace]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment