Skip to content

Commit

Permalink
Upgrade tokio library
Browse files Browse the repository at this point in the history
  • Loading branch information
allada committed Dec 29, 2020
1 parent 5dc8ac0 commit 3e8c210
Show file tree
Hide file tree
Showing 8 changed files with 463 additions and 16 deletions.
26 changes: 23 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ prost-types = "0.6.1"
hex = "0.4.2"
async-mutex = "1.4.0"
async-trait = "0.1.42"
tokio = { version = "0.2.2", features = ["macros"] }
tokio = { version = "0.3.6", features = ["macros", "io-util", "rt-multi-thread"] }
tonic = "0.3.1"
tokio-test = "0.4.0"

Expand Down
2 changes: 1 addition & 1 deletion third_party/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ alias(

alias(
name = "tokio",
actual = "@raze__tokio__0_2_24//:tokio",
actual = "@raze__tokio__0_3_6//:tokio",
tags = [
"cargo-raze",
"manual",
Expand Down
30 changes: 25 additions & 5 deletions third_party/crates.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,16 @@ def raze_fetch_remote_crates():
build_file = Label("//third_party/remote:BUILD.bytes-0.5.6.bazel"),
)

maybe(
http_archive,
name = "raze__bytes__0_6_0",
url = "https://crates.io/api/v1/crates/bytes/0.6.0/download",
type = "tar.gz",
sha256 = "e0dcbc35f504eb6fc275a6d20e4ebcda18cf50d40ba6fabff8c711fa16cb3b16",
strip_prefix = "bytes-0.6.0",
build_file = Label("//third_party/remote:BUILD.bytes-0.6.0.bazel"),
)

maybe(
http_archive,
name = "raze__bytes__1_0_0",
Expand Down Expand Up @@ -1961,6 +1971,16 @@ def raze_fetch_remote_crates():
build_file = Label("//third_party/remote:BUILD.tokio-0.2.24.bazel"),
)

maybe(
http_archive,
name = "raze__tokio__0_3_6",
url = "https://crates.io/api/v1/crates/tokio/0.3.6/download",
type = "tar.gz",
sha256 = "720ba21c25078711bf456d607987d95bce90f7c3bea5abe1db587862e7a1e87c",
strip_prefix = "tokio-0.3.6",
build_file = Label("//third_party/remote:BUILD.tokio-0.3.6.bazel"),
)

maybe(
http_archive,
name = "raze__tokio__1_0_1",
Expand All @@ -1973,12 +1993,12 @@ def raze_fetch_remote_crates():

maybe(
http_archive,
name = "raze__tokio_macros__0_2_6",
url = "https://crates.io/api/v1/crates/tokio-macros/0.2.6/download",
name = "raze__tokio_macros__0_3_2",
url = "https://crates.io/api/v1/crates/tokio-macros/0.3.2/download",
type = "tar.gz",
sha256 = "e44da00bfc73a25f814cd8d7e57a68a5c31b74b3152a0a1d1f590c97ed06265a",
strip_prefix = "tokio-macros-0.2.6",
build_file = Label("//third_party/remote:BUILD.tokio-macros-0.2.6.bazel"),
sha256 = "46dfffa59fc3c8aad216ed61bdc2c263d2b9d87a9c8ac9de0c11a813e51b6db7",
strip_prefix = "tokio-macros-0.3.2",
build_file = Label("//third_party/remote:BUILD.tokio-macros-0.3.2.bazel"),
)

maybe(
Expand Down
83 changes: 83 additions & 0 deletions third_party/remote/BUILD.bytes-0.6.0.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
"""
@generated
cargo-raze crate build file.

DO NOT EDIT! Replaced on runs of cargo-raze
"""

# buildifier: disable=load
load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_binary",
"rust_library",
"rust_test",
)

# buildifier: disable=load
load("@bazel_skylib//lib:selects.bzl", "selects")

package(default_visibility = [
# Public for visibility by "@raze__crate__version//" targets.
#
# Prefer access through "//third_party", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
])

licenses([
"notice", # MIT from expression "MIT"
])

# Generated Targets

# Unsupported target "buf" with type "bench" omitted

# Unsupported target "bytes" with type "bench" omitted

# Unsupported target "bytes_mut" with type "bench" omitted

rust_library(
name = "bytes",
srcs = glob(["**/*.rs"]),
crate_features = [
"default",
"std",
],
crate_root = "src/lib.rs",
crate_type = "lib",
data = [],
edition = "2018",
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-raze",
"manual",
],
version = "0.6.0",
# buildifier: leave-alone
deps = [
],
)

# Unsupported target "test_buf" with type "test" omitted

# Unsupported target "test_buf_mut" with type "test" omitted

# Unsupported target "test_bytes" with type "test" omitted

# Unsupported target "test_bytes_odd_alloc" with type "test" omitted

# Unsupported target "test_bytes_vec_alloc" with type "test" omitted

# Unsupported target "test_chain" with type "test" omitted

# Unsupported target "test_debug" with type "test" omitted

# Unsupported target "test_iter" with type "test" omitted

# Unsupported target "test_reader" with type "test" omitted

# Unsupported target "test_serde" with type "test" omitted

# Unsupported target "test_take" with type "test" omitted
5 changes: 0 additions & 5 deletions third_party/remote/BUILD.tokio-0.2.24.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ rust_library(
"io-util",
"iovec",
"lazy_static",
"macros",
"memchr",
"mio",
"rt-core",
Expand All @@ -53,15 +52,11 @@ rust_library(
"sync",
"tcp",
"time",
"tokio-macros",
],
crate_root = "src/lib.rs",
crate_type = "lib",
data = [],
edition = "2018",
proc_macro_deps = [
"@raze__tokio_macros__0_2_6//:tokio_macros",
],
rustc_flags = [
"--cap-lints=allow",
],
Expand Down
Loading

0 comments on commit 3e8c210

Please sign in to comment.