forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
narwhal-
prefix to narwhal package names (MystenLabs/narwhal#1025)
Closes MystenLabs/narwhal#757 This makes filtering by narwhal package names easier. Also if we place Narwhal packages along with other packages, we would like to have non-ambiguous package and matching directory names. Adding narwhal- instead of narwhal_ prefix to match the style in Sui.
- Loading branch information
Showing
24 changed files
with
88 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "config" | ||
name = "narwhal-config" | ||
version = "0.1.0" | ||
license = "Apache-2.0" | ||
authors = ["Mysten Labs <[email protected]>"] | ||
|
@@ -16,7 +16,7 @@ tracing = "0.1.36" | |
arc-swap = { version = "1.5.1", features = ["serde"] } | ||
|
||
fastcrypto = "0.1.2" | ||
crypto = { path = "../crypto" } | ||
crypto = { path = "../crypto", package = "narwhal-crypto" } | ||
workspace-hack = { version = "0.1", path = "../workspace-hack" } | ||
rand = "0.8.5" | ||
|
||
|
@@ -26,4 +26,4 @@ rand = "0.8.5" | |
tempfile = "3.3.0" | ||
tracing-test = "0.2.3" | ||
|
||
test_utils = { path = "../test_utils" } | ||
test_utils = { path = "../test_utils", package = "narwhal-test-utils" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "consensus" | ||
name = "narwhal-consensus" | ||
version = "0.1.0" | ||
license = "Apache-2.0" | ||
authors = ["Mysten Labs <[email protected]>"] | ||
|
@@ -19,13 +19,13 @@ thiserror = "1.0.35" | |
tokio = { version = "1.20.1", features = ["sync"] } | ||
tracing = "0.1.36" | ||
|
||
config = { path = "../config" } | ||
config = { path = "../config", package = "narwhal-config" } | ||
fastcrypto = "0.1.2" | ||
crypto = { path = "../crypto" } | ||
storage = { path = "../storage" } | ||
dag = { path = "../dag" } | ||
crypto = { path = "../crypto", package = "narwhal-crypto" } | ||
storage = { path = "../storage", package = "narwhal-storage" } | ||
dag = { path = "../dag", package = "narwhal-dag" } | ||
prometheus = "0.13.2" | ||
types = { path = "../types" } | ||
types = { path = "../types", package = "narwhal-types" } | ||
workspace-hack = { version = "0.1", path = "../workspace-hack" } | ||
cfg-if = "1.0.0" | ||
|
||
|
@@ -34,7 +34,7 @@ bincode = "1.3.3" | |
criterion = "0.3.6" | ||
futures = "0.3.24" | ||
indexmap = { version = "1.9.1", features = ["serde"] } | ||
test_utils = { path = "../test_utils" } | ||
test_utils = { path = "../test_utils", package = "narwhal-test-utils" } | ||
|
||
[target.'cfg(unix)'.dev-dependencies] | ||
pprof = { version = "0.10.1", features = ["criterion", "flamegraph"]} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "crypto" | ||
name = "narwhal-crypto" | ||
version = "0.1.0" | ||
license = "Apache-2.0" | ||
authors = ["Mysten Labs <[email protected]>"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "dag" | ||
name = "narwhal-dag" | ||
version = "0.1.0" | ||
license = "Apache-2.0" | ||
authors = ["Mysten Labs <[email protected]>"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "demo" | ||
name = "narwhal-examples" | ||
version = "0.1.0" | ||
license = "Apache-2.0" | ||
authors = ["Mysten Labs <[email protected]>"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "network" | ||
name = "narwhal-network" | ||
version = "0.1.0" | ||
license = "Apache-2.0" | ||
authors = ["Mysten Labs <[email protected]>"] | ||
|
@@ -20,8 +20,8 @@ tokio = { version = "1.20.1", features = ["rt", "net", "sync", "macros", "time"] | |
tokio-util = { version = "0.7.4", features = ["codec"] } | ||
tonic = { version = "0.7.2", features = ["tls"] } | ||
tracing = "0.1.36" | ||
types = { path = "../types" } | ||
crypto = { path = "../crypto" } | ||
types = { path = "../types", package = "narwhal-types" } | ||
crypto = { path = "../crypto", package = "narwhal-crypto" } | ||
|
||
serde = "1.0.144" | ||
workspace-hack = { version = "0.1", path = "../workspace-hack" } | ||
|
@@ -32,4 +32,4 @@ anyhow = "1.0.65" | |
|
||
[dev-dependencies] | ||
bincode = "1.3.3" | ||
test_utils = { path = "../test_utils" } | ||
test_utils = { path = "../test_utils", package = "narwhal-test-utils" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "node" | ||
name = "narwhal-node" | ||
version = "0.1.0" | ||
license = "Apache-2.0" | ||
authors = ["Mysten Labs <[email protected]>"] | ||
|
@@ -30,17 +30,17 @@ url = "2.3.1" | |
axum = "0.5.16" | ||
itertools = "0.10.4" | ||
|
||
config = { path = "../config" } | ||
consensus = { path = "../consensus" } | ||
config = { path = "../config", package = "narwhal-config" } | ||
consensus = { path = "../consensus", package = "narwhal-consensus" } | ||
fastcrypto = "0.1.2" | ||
crypto = { path = "../crypto" } | ||
executor = { path = "../executor" } | ||
network = { path = "../network" } | ||
primary = { path = "../primary" } | ||
crypto = { path = "../crypto", package = "narwhal-crypto" } | ||
executor = { path = "../executor", package = "narwhal-executor" } | ||
network = { path = "../network", package = "narwhal-network" } | ||
primary = { path = "../primary", package = "narwhal-primary" } | ||
prometheus = "0.13.2" | ||
storage = { path = "../storage" } | ||
types = { path = "../types" } | ||
worker = { path = "../worker" } | ||
storage = { path = "../storage", package = "narwhal-storage" } | ||
types = { path = "../types", package = "narwhal-types" } | ||
worker = { path = "../worker", package = "narwhal-worker" } | ||
workspace-hack = { version = "0.1", path = "../workspace-hack" } | ||
eyre = "0.6.8" | ||
|
||
|
@@ -52,13 +52,17 @@ pretty_assertions = "1.3.0" | |
serde-reflection = "0.3.6" | ||
serde_yaml = "0.8.26" | ||
structopt = "0.3.26" | ||
test_utils = { path = "../test_utils" } | ||
test_utils = { path = "../test_utils", package = "narwhal-test-utils" } | ||
|
||
[features] | ||
benchmark = ["worker/benchmark", "primary/benchmark", "consensus/benchmark"] | ||
dhat-heap = ["dhat"] # if you are doing heap profiling | ||
trace_transaction = ["worker/trace_transaction"] | ||
|
||
[[bin]] | ||
name = "node" | ||
path = "src/main.rs" | ||
|
||
[[bin]] | ||
name = "benchmark_client" | ||
path = "src/benchmark_client.rs" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "primary" | ||
name = "narwhal-primary" | ||
version = "0.1.0" | ||
license = "Apache-2.0" | ||
authors = ["Mysten Labs <[email protected]>"] | ||
|
@@ -14,7 +14,7 @@ base64 = "0.13.0" | |
bincode = "1.3.3" | ||
blake2 = "0.9" | ||
bytes = "1.2.1" | ||
config = { path = "../config" } | ||
config = { path = "../config", package = "narwhal-config" } | ||
dashmap = "5.4.0" | ||
derive_builder = "0.11.2" | ||
dhat = { version = "0.3.0", optional = true } | ||
|
@@ -35,12 +35,12 @@ tower = { version = "0.4.13", features = ["full"] } | |
tracing = "0.1.36" | ||
tap = "1.0.1" | ||
|
||
consensus = { path = "../consensus" } | ||
consensus = { path = "../consensus", package = "narwhal-consensus" } | ||
fastcrypto = "0.1.2" | ||
crypto = { path = "../crypto" } | ||
network = { path = "../network" } | ||
types = { path = "../types" } | ||
storage = { path = "../storage" } | ||
crypto = { path = "../crypto", package = "narwhal-crypto" } | ||
network = { path = "../network", package = "narwhal-network" } | ||
types = { path = "../types", package = "narwhal-types" } | ||
storage = { path = "../storage", package = "narwhal-storage" } | ||
mysten-network = "0.1.0" | ||
|
||
store = { version = "0.1.0", package = "typed-store" } | ||
|
@@ -51,20 +51,20 @@ anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "6278d0fa78147a | |
[dev-dependencies] | ||
arc-swap = { version = "1.5.1", features = ["serde"] } | ||
async-trait = "0.1.57" | ||
executor = { path = "../executor" } | ||
executor = { path = "../executor", package = "narwhal-executor" } | ||
indexmap = { version = "1.9.1", features = ["serde"] } | ||
itertools = "0.10.4" | ||
mockall = "0.11.2" | ||
node = { path = "../node" } | ||
node = { path = "../node", package = "narwhal-node" } | ||
proptest = "1.0.0" | ||
tempfile = "3.3.0" | ||
telemetry-subscribers = "0.1.0" | ||
test_utils = { path = "../test_utils" } | ||
test_utils = { path = "../test_utils", package = "narwhal-test-utils" } | ||
thiserror = "1.0.35" | ||
tracing = "0.1.36" | ||
tracing-test = "0.2.3" | ||
worker = { path = "../worker" } | ||
storage = { path = "../storage" } | ||
worker = { path = "../worker", package = "narwhal-worker" } | ||
storage = { path = "../storage", package = "narwhal-storage" } | ||
|
||
[features] | ||
benchmark = [] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.