Skip to content

Commit

Permalink
crates: move channel to crates directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill authored and bors-libra committed Dec 3, 2021
1 parent e7b5ac2 commit 484f645
Show file tree
Hide file tree
Showing 22 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ resolver = "2"
members = [
"api",
"api/types",
"common/channel",
"common/crash-handler",
"common/debug-interface",
"common/diemdoc",
Expand Down Expand Up @@ -34,6 +33,7 @@ members = [
"consensus/consensus-types",
"consensus/safety-rules",
"crates/bounded-executor",
"crates/channel",
"crates/diem-assets-proof",
"crates/diem-bitvec",
"crates/diem-client",
Expand Down
2 changes: 1 addition & 1 deletion consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ termion = { version = "1.5.6", default-features = false }
thiserror = "1.0.24"
tokio = { version = "1.8.1", features = ["full"] }

channel = { path = "../common/channel" }
channel = { path = "../crates/channel" }
consensus-notifications = { path = "../state-sync/inter-component/consensus-notifications" }
consensus-types = { path = "consensus-types", default-features = false }
event-notifications = { path = "../state-sync/inter-component/event-notifications" }
Expand Down
4 changes: 2 additions & 2 deletions common/channel/Cargo.toml → crates/channel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ edition = "2018"
[dependencies]
anyhow = "1.0.38"
futures = "0.3.12"
diem-metrics = { path = "../metrics" }
diem-infallible = { path = "../infallible" }
diem-metrics = { path = "../../common/metrics" }
diem-infallible = { path = "../../common/infallible" }
diem-workspace-hack = { path = "../../crates/diem-workspace-hack" }

[dev-dependencies]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion mempool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tokio = { version = "1.8.1", features = ["full"] }
tokio-stream = "0.1.4"

bounded-executor = { path = "../crates/bounded-executor" }
channel = { path = "../common/channel" }
channel = { path = "../crates/channel" }
bcs = "0.1.2"
diem-config = { path = "../config" }
diem-crypto = { path = "../crates/diem-crypto" }
Expand Down
2 changes: 1 addition & 1 deletion network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ tokio-stream = "0.1.4"
tokio-util = { version = "0.6.4", features = ["compat", "codec"] }

bitvec = { path = "../crates/diem-bitvec", package = "diem-bitvec" }
channel = { path = "../common/channel" }
channel = { path = "../crates/channel" }
bcs = "0.1.2"
diem-config = { path = "../config" }
diem-crypto = { path = "../crates/diem-crypto" }
Expand Down
2 changes: 1 addition & 1 deletion network/builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rand = "0.8.3"
serde = { version = "1.0.124", default-features = false }
tokio = { version = "1.8.1", features = ["full"] }

channel = { path = "../../common/channel" }
channel = { path = "../../crates/channel" }
bcs = "0.1.2"
diem-config = { path = "../../config" }
diem-crypto = { path = "../../crates/diem-crypto" }
Expand Down
2 changes: 1 addition & 1 deletion network/discovery/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ once_cell = "1.7.2"
serde_yaml = "0.8.17"
tokio = { version = "1.8.1", features = ["full"] }

channel = {path = "../../common/channel"}
channel = {path = "../../crates/channel"}
bcs = "0.1.2"
event-notifications = { path = "../../state-sync/inter-component/event-notifications" }
diem-config = { path = "../../config"}
Expand Down
2 changes: 1 addition & 1 deletion state-sync/diem-data-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ maplit = "1.0.2"
tokio = { version = "1.8.1", features = ["rt", "macros"], default-features = false }

bcs = "0.1.2"
channel = { path = "../../common/channel" }
channel = { path = "../../crates/channel" }
diem-time-service = { path = "../../common/time-service", features = ["async", "testing"] }
network = { path = "../../network", features = ["fuzzing"] }
2 changes: 1 addition & 1 deletion state-sync/inter-component/event-notifications/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ serde = { version = "1.0.124", default-features = false }
thiserror = "1.0.24"
tokio = { version = "1.8.1" }

channel = { path = "../../../common/channel" }
channel = { path = "../../../crates/channel" }
diem-id-generator = { path = "../../../common/id-generator" }
diem-infallible = { path = "../../../common/infallible" }
diem-types = { path = "../../../types" }
Expand Down
4 changes: 2 additions & 2 deletions state-sync/state-sync-v1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tokio = { version = "1.8.1", features = ["full"] }
tokio-stream = "0.1.4"

consensus-notifications = { path = "../inter-component/consensus-notifications" }
channel = { path = "../../common/channel" }
channel = { path = "../../crates/channel" }
diem-config = { path = "../../config" }
diem-crypto = { path = "../../crates/diem-crypto" }
diem-infallible = { path = "../../common/infallible" }
Expand Down Expand Up @@ -54,7 +54,7 @@ bytes = "1.0.1"
claim = "0.5.0"
proptest = "1.0.0"

channel = { path = "../../common/channel" }
channel = { path = "../../crates/channel" }
diem-framework-releases= { path = "../../diem-move/diem-framework/DPN/releases" }
diem-crypto = { path = "../../crates/diem-crypto" }
diem-genesis-tool = {path = "../../config/management/genesis", features = ["testing"] }
Expand Down
2 changes: 1 addition & 1 deletion state-sync/state-sync-v2/data-streaming-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ thiserror = "1.0.24"
tokio = { version = "1.8.1", features = ["full"] }
tokio-stream = "0.1.4"

channel = { path = "../../../common/channel" }
channel = { path = "../../../crates/channel" }
diem-config = { path = "../../../config" }
diem-crypto = { path = "../../../crates/diem-crypto" }
diem-data-client = { path = "../../diem-data-client" }
Expand Down
2 changes: 1 addition & 1 deletion state-sync/state-sync-v2/state-sync-driver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ storage-interface = { path = "../../../storage/storage-interface" }
[dev-dependencies]
claim = "0.5.0"

channel = { path = "../../../common/channel" }
channel = { path = "../../../crates/channel" }
diemdb = { path = "../../../storage/diemdb" }
diem-crypto = { path = "../../../crates/diem-crypto" }
diem-temppath = { path = "../../../common/temppath" }
Expand Down
2 changes: 1 addition & 1 deletion state-sync/storage-service/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = "2018"
async-trait = "0.1.42"
thiserror = "1.0.24"

channel = { path = "../../../common/channel" }
channel = { path = "../../../crates/channel" }
diem-config = { path = "../../../config" }
diem-types = { path = "../../../types" }
diem-workspace-hack = { path = "../../../crates/diem-workspace-hack" }
Expand Down
2 changes: 1 addition & 1 deletion state-sync/storage-service/server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ thiserror = "1.0.24"
tokio = { version = "1.8.1", features = ["rt", "macros"], default-features = false }

bounded-executor = { path = "../../../crates/bounded-executor" }
channel = { path = "../../../common/channel" }
channel = { path = "../../../crates/channel" }
diem-config = { path = "../../../config" }
diem-logger = { path = "../../../common/logger" }
diem-metrics = { path = "../../../common/metrics" }
Expand Down
1 change: 0 additions & 1 deletion x.toml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ members = [
"language-benchmarks",
"language-e2e-tests",
"language-e2e-testsuite",
"many-keys-stress-test",
"memsocket",
"mirai-dataflow-analysis",
"module-generation",
Expand Down

0 comments on commit 484f645

Please sign in to comment.