Skip to content

Commit

Permalink
chore: Remove required bytes dep and clean up deny (#227)
Browse files Browse the repository at this point in the history
* chore: Remove required bytes dep and clean up deny

* Fix interop test cli args
  • Loading branch information
LucioFranco authored Jan 11, 2020
1 parent 18e944b commit 6673f91
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 20 deletions.
9 changes: 3 additions & 6 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ deny = [
# term is not fully maintained, and termcolor is replacing it
{ name = "term" },
]
skip = [
{ name = "bytes", version = "=0.4.12" },
]
skip-tree = [
{ name = "rand", version = "=0.6.5" },
{ name = "syn", version = "=0.15.44" },
skip-tree = [
{ name = "winapi", version = "<= 0.3" },
{ name = "autocfg", version = "<= 1" },
]

[licenses]
Expand Down
3 changes: 1 addition & 2 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ path = "src/uds/server.rs"

[dependencies]
tonic = { path = "../tonic", features = ["tls"] }
bytes = "0.5"
prost = { git = "https://github.com/danburkert/prost", branch = "master" }

tokio = { version = "0.2", features = ["rt-threaded", "time", "stream", "fs", "macros", "uds"] }
Expand All @@ -100,7 +99,7 @@ tower = "0.3"
# Required for routeguide
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
rand = "0.6"
rand = "0.7"

# Tracing
tracing = "0.1"
Expand Down
1 change: 0 additions & 1 deletion examples/helloworld-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ path = "src/client.rs"

[dependencies]
tonic = "0.1.0-beta.1"
bytes = "0.5"
prost = { git = "https://github.com/danburkert/prost", branch = "master" }
tokio = { version = "0.2", features = ["macros"] }

Expand Down
1 change: 0 additions & 1 deletion examples/routeguide-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ Edit `Cargo.toml` and add all the dependencies we'll need for this example:
```toml
[dependencies]
tonic = "0.1.0-beta.1"
bytes = "0.5"
prost = { git = "https://github.com/danburkert/prost", branch = "master" }
futures-core = "0.3"
futures-util = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion interop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tower = "0.3"
http-body = "0.3"

console = "0.9"
structopt = "0.2"
structopt = "0.3"

tracing = "0.1"
tracing-subscriber = "0.2.0-alpha"
Expand Down
8 changes: 4 additions & 4 deletions interop/src/bin/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ use tonic_interop::client;

#[derive(StructOpt)]
struct Opts {
#[structopt(name = "use_tls", long)]
use_tls: bool,

#[structopt(
long = "test_case",
use_delimiter = true,
min_values = 1,
raw(possible_values = r#"&Testcase::variants()"#)
possible_values = &Testcase::variants()
)]
test_case: Vec<Testcase>,

#[structopt(long)]
use_tls: bool,
}

#[tokio::main]
Expand Down
2 changes: 1 addition & 1 deletion interop/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use tonic_interop::{server, MergeTrailers};

#[derive(StructOpt)]
struct Opts {
#[structopt(long)]
#[structopt(name = "use_tls", long)]
use_tls: bool,
}

Expand Down
1 change: 0 additions & 1 deletion tests/included_service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ license = "MIT"

[dependencies]
tonic = { path = "../../tonic" }
bytes = "0.5"
prost = { git = "https://github.com/danburkert/prost", branch = "master" }

[build-dependencies]
Expand Down
1 change: 0 additions & 1 deletion tests/same_name/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ license = "MIT"

[dependencies]
tonic = { path = "../../tonic" }
bytes = "0.5"
prost = { git = "https://github.com/danburkert/prost", branch = "master" }

[build-dependencies]
Expand Down
1 change: 0 additions & 1 deletion tests/wellknown/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ license = "MIT"

[dependencies]
tonic = { path = "../../tonic" }
bytes = "0.5"
prost = { git = "https://github.com/danburkert/prost", branch = "master" }
prost-types = { git = "https://github.com/danburkert/prost", branch = "master" }

Expand Down
2 changes: 1 addition & 1 deletion tonic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ rustls-native-certs = { version = "0.1", optional = true }
[dev-dependencies]
tokio = { version = "0.2", features = ["rt-core", "macros"] }
static_assertions = "1.0"
rand = "0.6"
rand = "0.7"
bencher = "0.1.5"

[package.metadata.docs.rs]
Expand Down

0 comments on commit 6673f91

Please sign in to comment.