Skip to content

Commit e0271b4

Browse files
authored
Rename crates to reflect directory structure (#834)
This change renames most subcrates to be linkerd-* instead of linkerd2-*, matching the repository layout. The `linkerd2-proxy` and `linkerd2-proxy-api` crate names remain unchanged, as they reflect their respective repository names.
1 parent 53536ce commit e0271b4

File tree

219 files changed

+809
-812
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+809
-812
lines changed

Cargo.lock

Lines changed: 234 additions & 234 deletions
Large diffs are not rendered by default.

hyper-balance/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ futures = "0.3.9"
1111
http = "0.2"
1212
hyper = "0.14.2"
1313
pin-project = "1"
14-
tower = { version = "0.4.1", default-features = false, features = ["load"]}
15-
tokio = { version = "1", features = ["macros"]}
14+
tower = { version = "0.4.1", default-features = false, features = ["load"] }
15+
tokio = { version = "1", features = ["macros"] }
1616

1717
[dev-dependencies]
1818
tokio-test = "0.4"

linkerd/addr/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "linkerd2-addr"
2+
name = "linkerd-addr"
33
version = "0.1.0"
44
authors = ["Linkerd Developers <[email protected]>"]
55
license = "Apache-2.0"
@@ -8,4 +8,4 @@ publish = false
88

99
[dependencies]
1010
http = "0.2"
11-
linkerd2-dns-name = { path = "../dns/name" }
11+
linkerd-dns-name = { path = "../dns/name" }

linkerd/addr/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![deny(warnings, rust_2018_idioms)]
22

3-
use linkerd2_dns_name::Name;
3+
use linkerd_dns_name::Name;
44
use std::{
55
fmt,
66
net::{IpAddr, SocketAddr},

linkerd/app/Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "linkerd2-app"
2+
name = "linkerd-app"
33
version = "0.1.0"
44
authors = ["Linkerd Developers <[email protected]>"]
55
license = "Apache-2.0"
@@ -12,19 +12,19 @@ This is used by tests and the executable.
1212
"""
1313

1414
[features]
15-
mock-orig-dst = ["linkerd2-app-core/mock-orig-dst"]
15+
mock-orig-dst = ["linkerd-app-core/mock-orig-dst"]
1616

1717
[dependencies]
1818
futures = "0.3.9"
1919
indexmap = "1.0"
2020
ipnet = "2.0"
21-
linkerd2-app-core = { path = "./core" }
22-
linkerd2-app-gateway = { path = "./gateway" }
23-
linkerd2-app-inbound = { path = "./inbound" }
24-
linkerd2-app-outbound = { path = "./outbound" }
25-
linkerd2-channel = { path = "../channel" }
26-
linkerd2-opencensus = { path = "../opencensus" }
27-
linkerd2-error = { path = "../error" }
21+
linkerd-app-core = { path = "./core" }
22+
linkerd-app-gateway = { path = "./gateway" }
23+
linkerd-app-inbound = { path = "./inbound" }
24+
linkerd-app-outbound = { path = "./outbound" }
25+
linkerd-channel = { path = "../channel" }
26+
linkerd-opencensus = { path = "../opencensus" }
27+
linkerd-error = { path = "../error" }
2828
regex = "1.0.0"
2929
tokio = { version = "1", features = ["rt"] }
3030
tonic = { version = "0.3", default-features = false, features = ["prost"] }

linkerd/app/core/Cargo.toml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "linkerd2-app-core"
2+
name = "linkerd-app-core"
33
version = "0.1.0"
44
authors = ["Linkerd Developers <[email protected]>"]
55
license = "Apache-2.0"
@@ -13,54 +13,54 @@ independently of the inbound and outbound proxy logic.
1313
"""
1414

1515
[features]
16-
mock-orig-dst = ["linkerd2-proxy-transport/mock-orig-dst"]
16+
mock-orig-dst = ["linkerd-proxy-transport/mock-orig-dst"]
1717

1818
[dependencies]
1919
bytes = "1"
2020
http = "0.2"
2121
http-body = "0.4"
2222
hyper = { version = "0.14.2", features = ["http1", "http2"] }
23-
futures = "0.3"
23+
futures = "0.3.9"
2424
indexmap = "1.0"
2525
ipnet = "2.0"
26-
linkerd2-addr = { path = "../../addr" }
27-
linkerd2-cache = { path = "../../cache" }
28-
linkerd2-buffer = { path = "../../buffer" }
29-
linkerd2-concurrency-limit = { path = "../../concurrency-limit" }
30-
linkerd2-conditional = { path = "../../conditional" }
31-
linkerd2-dns = { path = "../../dns" }
32-
linkerd2-drain = { path = "../../drain", features = ["retain"] }
33-
linkerd2-duplex = { path = "../../duplex" }
34-
linkerd2-errno = { path = "../../errno" }
35-
linkerd2-error = { path = "../../error" }
36-
linkerd2-error-metrics = { path = "../../error-metrics" }
37-
linkerd2-error-respond = { path = "../../error-respond" }
38-
linkerd2-exp-backoff = { path = "../../exp-backoff" }
39-
linkerd2-http-classify = { path = "../../http-classify" }
40-
linkerd2-http-metrics = { path = "../../http-metrics" }
41-
linkerd2-metrics = { path = "../../metrics" }
42-
linkerd2-transport-header = { path = "../../transport-header" }
43-
linkerd2-opencensus = { path = "../../opencensus" }
44-
linkerd2-proxy-core = { path = "../../proxy/core" }
26+
linkerd-addr = { path = "../../addr" }
27+
linkerd-cache = { path = "../../cache" }
28+
linkerd-buffer = { path = "../../buffer" }
29+
linkerd-concurrency-limit = { path = "../../concurrency-limit" }
30+
linkerd-conditional = { path = "../../conditional" }
31+
linkerd-dns = { path = "../../dns" }
32+
linkerd-drain = { path = "../../drain", features = ["retain"] }
33+
linkerd-duplex = { path = "../../duplex" }
34+
linkerd-errno = { path = "../../errno" }
35+
linkerd-error = { path = "../../error" }
36+
linkerd-error-metrics = { path = "../../error-metrics" }
37+
linkerd-error-respond = { path = "../../error-respond" }
38+
linkerd-exp-backoff = { path = "../../exp-backoff" }
39+
linkerd-http-classify = { path = "../../http-classify" }
40+
linkerd-http-metrics = { path = "../../http-metrics" }
41+
linkerd-metrics = { path = "../../metrics" }
42+
linkerd-transport-header = { path = "../../transport-header" }
43+
linkerd-opencensus = { path = "../../opencensus" }
44+
linkerd-proxy-core = { path = "../../proxy/core" }
4545
linkerd2-proxy-api = { git = "https://github.com/linkerd/linkerd2-proxy-api", branch = "ver/tonic-git" }
46-
linkerd2-proxy-api-resolve = { path = "../../proxy/api-resolve" }
47-
linkerd2-proxy-discover = { path = "../../proxy/discover" }
48-
linkerd2-proxy-identity = { path = "../../proxy/identity" }
49-
linkerd2-proxy-http = { path = "../../proxy/http" }
50-
linkerd2-proxy-resolve = { path = "../../proxy/resolve" }
51-
linkerd2-proxy-dns-resolve = { path = "../../proxy/dns-resolve" }
52-
linkerd2-proxy-tap = { path = "../../proxy/tap" }
53-
linkerd2-proxy-tcp = { path = "../../proxy/tcp" }
54-
linkerd2-proxy-transport = { path = "../../proxy/transport" }
55-
linkerd2-reconnect = { path = "../../reconnect" }
56-
linkerd2-retry = { path = "../../retry" }
57-
linkerd2-timeout = { path = "../../timeout" }
58-
linkerd2-tracing = { path = "../../tracing" }
59-
linkerd2-service-profiles = { path = "../../service-profiles" }
60-
linkerd2-stack = { path = "../../stack" }
61-
linkerd2-stack-metrics = { path = "../../stack/metrics" }
62-
linkerd2-stack-tracing = { path = "../../stack/tracing" }
63-
linkerd2-trace-context = { path = "../../trace-context" }
46+
linkerd-proxy-api-resolve = { path = "../../proxy/api-resolve" }
47+
linkerd-proxy-discover = { path = "../../proxy/discover" }
48+
linkerd-proxy-identity = { path = "../../proxy/identity" }
49+
linkerd-proxy-http = { path = "../../proxy/http" }
50+
linkerd-proxy-resolve = { path = "../../proxy/resolve" }
51+
linkerd-proxy-dns-resolve = { path = "../../proxy/dns-resolve" }
52+
linkerd-proxy-tap = { path = "../../proxy/tap" }
53+
linkerd-proxy-tcp = { path = "../../proxy/tcp" }
54+
linkerd-proxy-transport = { path = "../../proxy/transport" }
55+
linkerd-reconnect = { path = "../../reconnect" }
56+
linkerd-retry = { path = "../../retry" }
57+
linkerd-timeout = { path = "../../timeout" }
58+
linkerd-tracing = { path = "../../tracing" }
59+
linkerd-service-profiles = { path = "../../service-profiles" }
60+
linkerd-stack = { path = "../../stack" }
61+
linkerd-stack-metrics = { path = "../../stack/metrics" }
62+
linkerd-stack-tracing = { path = "../../stack/tracing" }
63+
linkerd-trace-context = { path = "../../trace-context" }
6464
regex = "1.0.0"
6565
tokio = { version = "1", features = ["macros", "sync", "parking_lot"]}
6666
tonic = { version = "0.3", default-features = false, features = ["prost"] }

linkerd/app/core/src/addr_match.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use ipnet::IpNet;
2-
use linkerd2_addr::Addr;
3-
use linkerd2_dns::{Name, Suffix};
2+
use linkerd_addr::Addr;
3+
use linkerd_dns::{Name, Suffix};
44
use std::{net::IpAddr, sync::Arc};
55

66
#[derive(Clone, Debug, Default)]

linkerd/app/core/src/admin/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ use crate::{
1111
use futures::future;
1212
use http::StatusCode;
1313
use hyper::{Body, Request, Response};
14-
use linkerd2_error::{Error, Never};
15-
use linkerd2_metrics::{self as metrics, FmtMetrics};
14+
use linkerd_error::{Error, Never};
15+
use linkerd_metrics::{self as metrics, FmtMetrics};
1616
use std::{
1717
future::Future,
1818
pin::Pin,

linkerd/app/core/src/classify.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use crate::profiles;
2-
use linkerd2_error::Error;
3-
use linkerd2_http_classify as classify;
4-
pub use linkerd2_http_classify::{CanClassify, NewClassify};
5-
use linkerd2_proxy_http::HasH2Reason;
6-
use linkerd2_timeout::error::ResponseTimeout;
2+
use linkerd_error::Error;
3+
use linkerd_http_classify as classify;
4+
pub use linkerd_http_classify::{CanClassify, NewClassify};
5+
use linkerd_proxy_http::HasH2Reason;
6+
use linkerd_timeout::error::ResponseTimeout;
77
use std::borrow::Cow;
88
use tonic as grpc;
99
use tracing::trace;
@@ -226,7 +226,7 @@ impl Class {
226226
mod tests {
227227
use super::{Class, SuccessOrFailure};
228228
use http::{HeaderMap, Response, StatusCode};
229-
use linkerd2_http_classify::{ClassifyEos, ClassifyResponse};
229+
use linkerd_http_classify::{ClassifyEos, ClassifyResponse};
230230

231231
#[test]
232232
fn http_response_status_ok() {

linkerd/app/core/src/control.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ impl fmt::Display for ControlAddr {
3636
type BalanceBody =
3737
http::balance::PendingUntilFirstDataBody<tower::load::peak_ewma::Handle, hyper::Body>;
3838

39-
type RspBody = linkerd2_http_metrics::requests::ResponseBody<BalanceBody, classify::Eos>;
39+
type RspBody = linkerd_http_metrics::requests::ResponseBody<BalanceBody, classify::Eos>;
4040

41-
pub type Client<B> = linkerd2_buffer::Buffer<http::Request<B>, http::Response<RspBody>>;
41+
pub type Client<B> = linkerd_buffer::Buffer<http::Request<B>, http::Response<RspBody>>;
4242

4343
impl Config {
4444
pub fn build<B, I>(
@@ -75,7 +75,7 @@ impl Config {
7575
/// Sets the request's URI from `Config`.
7676
mod add_origin {
7777
use super::ControlAddr;
78-
use linkerd2_stack::{layer, NewService};
78+
use linkerd_stack::{layer, NewService};
7979
use std::task::{Context, Poll};
8080

8181
pub fn layer<M>() -> impl layer::Layer<M, Service = NewAddOrigin<M>> + Clone {
@@ -141,7 +141,7 @@ mod resolve {
141141
},
142142
svc,
143143
};
144-
use linkerd2_error::Recover;
144+
use linkerd_error::Recover;
145145
use std::net::SocketAddr;
146146

147147
pub fn layer<M, R>(
@@ -199,7 +199,7 @@ mod balance {
199199
mod client {
200200
use crate::transport::tls;
201201
use crate::{proxy::http, svc};
202-
use linkerd2_proxy_http::h2::Settings as H2Settings;
202+
use linkerd_proxy_http::h2::Settings as H2Settings;
203203
use std::{
204204
net::SocketAddr,
205205
task::{Context, Poll},

0 commit comments

Comments
 (0)