Skip to content

Commit bc98cde

Browse files
authored
Repace linkerd-drain with drain from crates.io (#1027)
The linkerd-drain crate has been split out into its on repo at https://github.com/linkerd/drain-rs and published to crates.io. This change removes the `linkerd/drain` directory and replaces dependencies with `drain v0.0.1`.
1 parent 6a9c213 commit bc98cde

File tree

12 files changed

+40
-372
lines changed

12 files changed

+40
-372
lines changed

Cargo.lock

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,17 @@ dependencies = [
171171
"syn",
172172
]
173173

174+
[[package]]
175+
name = "drain"
176+
version = "0.0.1"
177+
source = "registry+https://github.com/rust-lang/crates.io-index"
178+
checksum = "bace0faf279ba51822e2f4518eb311636d0e3198adbf7f55f496dc6ac96ac558"
179+
dependencies = [
180+
"futures",
181+
"tokio",
182+
"tower",
183+
]
184+
174185
[[package]]
175186
name = "dyn-clone"
176187
version = "1.0.4"
@@ -638,6 +649,7 @@ name = "linkerd-app-core"
638649
version = "0.1.0"
639650
dependencies = [
640651
"bytes",
652+
"drain",
641653
"futures",
642654
"html-escape",
643655
"http",
@@ -651,7 +663,6 @@ dependencies = [
651663
"linkerd-conditional",
652664
"linkerd-detect",
653665
"linkerd-dns",
654-
"linkerd-drain",
655666
"linkerd-duplex",
656667
"linkerd-errno",
657668
"linkerd-error",
@@ -885,18 +896,6 @@ dependencies = [
885896
"webpki",
886897
]
887898

888-
[[package]]
889-
name = "linkerd-drain"
890-
version = "0.1.0"
891-
dependencies = [
892-
"futures",
893-
"linkerd-stack",
894-
"pin-project",
895-
"tokio",
896-
"tokio-test",
897-
"tower",
898-
]
899-
900899
[[package]]
901900
name = "linkerd-duplex"
902901
version = "0.1.0"
@@ -1146,6 +1145,7 @@ version = "0.1.0"
11461145
dependencies = [
11471146
"async-trait",
11481147
"bytes",
1148+
"drain",
11491149
"futures",
11501150
"h2",
11511151
"http",
@@ -1155,7 +1155,6 @@ dependencies = [
11551155
"hyper-balance",
11561156
"indexmap",
11571157
"linkerd-detect",
1158-
"linkerd-drain",
11591158
"linkerd-duplex",
11601159
"linkerd-error",
11611160
"linkerd-http-box",

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ members = [
2020
"linkerd/transport-header",
2121
"linkerd/dns/name",
2222
"linkerd/dns",
23-
"linkerd/drain",
2423
"linkerd/duplex",
2524
"linkerd/error",
2625
"linkerd/errno",

linkerd/app/core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ independently of the inbound and outbound proxy logic.
1414

1515
[dependencies]
1616
bytes = "1"
17+
drain = { version = "0.0.1", features = ["retain"] }
1718
http = "0.2"
1819
html-escape = "0.2"
1920
http-body = "0.4"
@@ -26,7 +27,6 @@ linkerd-cache = { path = "../../cache" }
2627
linkerd-concurrency-limit = { path = "../../concurrency-limit" }
2728
linkerd-conditional = { path = "../../conditional" }
2829
linkerd-dns = { path = "../../dns" }
29-
linkerd-drain = { path = "../../drain", features = ["retain"] }
3030
linkerd-detect = { path = "../../detect" }
3131
linkerd-duplex = { path = "../../duplex" }
3232
linkerd-errno = { path = "../../errno" }

linkerd/app/core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
#![forbid(unsafe_code)]
1212
#![allow(clippy::inconsistent_struct_constructor)]
1313

14+
pub use drain;
1415
pub use linkerd_addr::{self as addr, Addr, NameAddr};
1516
pub use linkerd_cache as cache;
1617
pub use linkerd_conditional::Conditional;
1718
pub use linkerd_detect as detect;
1819
pub use linkerd_dns;
19-
pub use linkerd_drain as drain;
2020
pub use linkerd_error::{Error, Never, Recover};
2121
pub use linkerd_exp_backoff as exp_backoff;
2222
pub use linkerd_http_metrics as http_metrics;

linkerd/app/inbound/fuzz/Cargo.lock

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,17 @@ dependencies = [
158158
"syn",
159159
]
160160

161+
[[package]]
162+
name = "drain"
163+
version = "0.0.1"
164+
source = "registry+https://github.com/rust-lang/crates.io-index"
165+
checksum = "bace0faf279ba51822e2f4518eb311636d0e3198adbf7f55f496dc6ac96ac558"
166+
dependencies = [
167+
"futures",
168+
"tokio",
169+
"tower",
170+
]
171+
161172
[[package]]
162173
name = "dyn-clone"
163174
version = "1.0.4"
@@ -571,6 +582,7 @@ name = "linkerd-app-core"
571582
version = "0.1.0"
572583
dependencies = [
573584
"bytes",
585+
"drain",
574586
"futures",
575587
"html-escape",
576588
"http",
@@ -584,7 +596,6 @@ dependencies = [
584596
"linkerd-conditional",
585597
"linkerd-detect",
586598
"linkerd-dns",
587-
"linkerd-drain",
588599
"linkerd-duplex",
589600
"linkerd-errno",
590601
"linkerd-error",
@@ -756,16 +767,6 @@ dependencies = [
756767
"webpki",
757768
]
758769

759-
[[package]]
760-
name = "linkerd-drain"
761-
version = "0.1.0"
762-
dependencies = [
763-
"futures",
764-
"linkerd-stack",
765-
"tokio",
766-
"tower",
767-
]
768-
769770
[[package]]
770771
name = "linkerd-duplex"
771772
version = "0.1.0"
@@ -1006,6 +1007,7 @@ version = "0.1.0"
10061007
dependencies = [
10071008
"async-trait",
10081009
"bytes",
1010+
"drain",
10091011
"futures",
10101012
"h2",
10111013
"http",
@@ -1015,7 +1017,6 @@ dependencies = [
10151017
"hyper-balance",
10161018
"indexmap",
10171019
"linkerd-detect",
1018-
"linkerd-drain",
10191020
"linkerd-duplex",
10201021
"linkerd-error",
10211022
"linkerd-http-box",

linkerd/drain/Cargo.toml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)