Skip to content

Commit

Permalink
[language] move crates in diem-tools to diem/diem-move
Browse files Browse the repository at this point in the history
  • Loading branch information
vgao1996 authored and bors-libra committed Oct 28, 2021
1 parent 6b0637d commit b208105
Show file tree
Hide file tree
Showing 100 changed files with 243 additions and 254 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Temporary Items
.apdisk

# Generated VM config in vm-genesis
language/tools/vm-genesis/genesis/vm_config.toml
diem-move/vm-genesis/genesis/vm_config.toml

# Terraform
.terraform/
Expand Down
32 changes: 16 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ members = [
"devtools/x",
"devtools/x-core",
"devtools/x-lint",
"diem-move/df-cli",
"diem-move/diem-events-fetcher",
"diem-move/diem-keygen",
"diem-move/diem-resource-viewer",
"diem-move/diem-validator-interface",
"diem-move/e2e-tests-replay",
"diem-move/genesis-viewer",
"diem-move/oncall-trainer",
"diem-move/transaction-replay",
"diem-move/vm-genesis",
"diem-move/writeset-transaction-generator",
"diem-node",
"execution/db-bootstrapper",
"execution/execution-correctness",
Expand All @@ -69,14 +80,6 @@ members = [
"language/compiler/ir-to-bytecode/syntax",
"language/diem-framework",
"language/diem-framework/DPN/releases",
"language/diem-tools/df-cli",
"language/diem-tools/diem-events-fetcher",
"language/diem-tools/diem-keygen",
"language/diem-tools/diem-validator-interface",
"language/diem-tools/e2e-tests-replay",
"language/diem-tools/oncall-trainer",
"language/diem-tools/transaction-replay",
"language/diem-tools/writeset-transaction-generator",
"language/diem-transaction-benchmarks",
"language/diem-vm",
"language/diem-vm/mvhashmap",
Expand Down Expand Up @@ -119,9 +122,7 @@ members = [
"language/testing-infra/module-generation",
"language/testing-infra/test-generation",
"language/testing-infra/transactional-test-runner",
"language/tools/diem-resource-viewer",
"language/tools/disassembler",
"language/tools/genesis-viewer",
"language/tools/mirai-dataflow-analysis",
"language/tools/move-bytecode-utils",
"language/tools/move-bytecode-viewer",
Expand All @@ -134,7 +135,6 @@ members = [
"language/tools/read-write-set/dynamic",
"language/tools/read-write-set/types",
"language/tools/resource-viewer",
"language/tools/vm-genesis",
"language/transaction-builder/generator",
"mempool",
"network",
Expand Down Expand Up @@ -225,14 +225,14 @@ default-members = [
"language/move-stdlib",
"language/tools/disassembler",
"language/tools/move-bytecode-viewer",
"language/tools/genesis-viewer",
"language/tools/move-cli",
"language/tools/move-coverage",
"language/tools/move-unit-test",
"language/diem-tools/df-cli",
"language/diem-tools/diem-events-fetcher",
"language/diem-tools/transaction-replay",
"language/diem-tools/writeset-transaction-generator",
"diem-move/df-cli",
"diem-move/diem-events-fetcher",
"diem-move/genesis-viewer",
"diem-move/transaction-replay",
"diem-move/writeset-transaction-generator",
"language/tools/move-explain",
"language/transaction-builder/generator",
"diem-node",
Expand Down
2 changes: 1 addition & 1 deletion config/management/genesis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ diem-temppath = { path = "../../../common/temppath" }
diem-vm = { path = "../../../language/diem-vm" }
diemdb = { path = "../../../storage/diemdb" }
storage-interface = { path = "../../../storage/storage-interface" }
vm-genesis = { path = "../../../language/tools/vm-genesis" }
vm-genesis = { path = "../../../diem-move/vm-genesis" }

[dev-dependencies]
diem-config = { path = "../..", features = ["fuzzing"]}
Expand Down
2 changes: 1 addition & 1 deletion consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ diem-config = { path = "../config", features = ["fuzzing"] }
diem-mempool = { path = "../mempool", features = ["fuzzing"] }
network = { path = "../network", features = ["fuzzing"] }
safety-rules = { path = "safety-rules", features = ["testing"] }
vm-genesis = { path = "../language/tools/vm-genesis" }
vm-genesis = { path = "../diem-move/vm-genesis" }
vm-validator = { path = "../vm-validator" }

[features]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ anyhow = "1.0.38"
bcs = "0.1.2"
structopt = "0.3.21"

diem-workspace-hack = { path = "../../../common/workspace-hack" }
move-core-types = { path = "../../move-core/types" }
move-cli = { path = "../../tools/move-cli" }
diem-vm = { path = "../../diem-vm" }
diem-framework-releases = { path = "../../diem-framework/DPN/releases" }
diem-workspace-hack = { path = "../../common/workspace-hack" }
move-core-types = { path = "../../language/move-core/types" }
move-cli = { path = "../../language/tools/move-cli" }
diem-vm = { path = "../../language/diem-vm" }
diem-framework-releases = { path = "../../language/diem-framework/DPN/releases" }

[dev-dependencies]
datatest-stable = "0.1.1"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::path::{Path, PathBuf};
fn run_all(args_path: &Path) -> datatest_stable::Result<()> {
test::run_one(
args_path,
&PathBuf::from("../../../target/debug/df-cli"),
&PathBuf::from("../../target/debug/df-cli"),
/* use_temp_dir */ true,
/* track_cov */ false,
)?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ structopt = "0.3.21"
futures = "0.3.12"
tokio = { version = "1.8.1", features = ["full"] }

diem-workspace-hack = { path = "../../../common/workspace-hack" }
diem-client = { path = "../../../sdk/client" }
diem-types = { path = "../../../types" }
diem-workspace-hack = { path = "../../common/workspace-hack" }
diem-client = { path = "../../sdk/client" }
diem-types = { path = "../../types" }
bcs = "0.1.2"
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ rand = "0.8.3"
sha3 = "0.9.1"
hex = "0.4.3"

diem-crypto = { path = "../../../crypto/crypto" }
diem-types = { path = "../../../types" }
diem-workspace-hack = { path = "../../../common/workspace-hack" }
diem-crypto = { path = "../../crypto/crypto" }
diem-types = { path = "../../types" }
diem-workspace-hack = { path = "../../common/workspace-hack" }
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ publish = false
edition = "2018"

[dependencies]
diem-workspace-hack = { path = "../../../common/workspace-hack" }
resource-viewer = { path = "../resource-viewer" }
diem-types = { path = "../../../types" }
move-core-types = { path = "../../move-core/types" }
move-binary-format = { path = "../../move-binary-format" }
diem-workspace-hack = { path = "../../common/workspace-hack" }
resource-viewer = { path = "../../language/tools/resource-viewer" }
diem-types = { path = "../../types" }
move-core-types = { path = "../../language/move-core/types" }
move-binary-format = { path = "../../language/move-binary-format" }

anyhow = "1.0.38"
File renamed without changes.
23 changes: 23 additions & 0 deletions diem-move/diem-validator-interface/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
name = "diem-validator-interface"
version = "0.1.0"
authors = ["Diem Association <[email protected]>"]
description = "Defines interfaces between the diem nodes and local move infrastructure"
repository = "https://github.com/diem/diem"
homepage = "https://diem.com"
license = "Apache-2.0"
publish = false
edition = "2018"

[dependencies]
anyhow = "1.0.38"
diem-config = { path = "../../config" }
diem-client = { path = "../../sdk/client" }
diem-types = { path = "../../types" }
diemdb = { path = "../../storage/diemdb" }
diem-workspace-hack = { path = "../../common/workspace-hack" }
storage-interface = { path = "../../storage/storage-interface" }
scratchpad = { path = "../../storage/scratchpad" }
diem-state-view = { path = "../../storage/state-view" }
move-binary-format = { path = "../../language/move-binary-format" }
bcs = "0.1.2"
26 changes: 26 additions & 0 deletions diem-move/e2e-tests-replay/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[package]
name = "diem-e2e-tests-replay"
version = "0.1.0"
authors = ["Diem Association <[email protected]>"]
description = "A tool that reconstructs and replays test cases from the trace dump of E2E tests"
license = "Apache-2.0"
edition = "2018"
publish = false

[dependencies]
anyhow = "1.0.38"
bcs = "0.1.2"
structopt = "0.3.21"
walkdir = "2.3.1"

diem-workspace-hack = { path = "../../common/workspace-hack" }
bytecode-interpreter = { path = "../../language/move-prover/interpreter" }
diem-types = { path = "../../types", features = ["fuzzing"] }
diem-framework = { path = "../../language/diem-framework" }
diem-vm = { path = "../../language/diem-vm" }
language-e2e-tests = { path = "../../language/testing-infra/e2e-tests" }
move-binary-format = { path = "../../language/move-binary-format" }
move-core-types = { path = "../../language/move-core/types" }
move-model = { path = "../../language/move-model" }
move-vm-runtime = { path = "../../language/move-vm/runtime" }
move-vm-types = { path = "../../language/move-vm/types" }
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ edition = "2018"

[dependencies]
bcs = "0.1.2"
diem-types = { path = "../../../types" }
diem-workspace-hack = { path = "../../../common/workspace-hack" }
move-binary-format = { path = "../../move-binary-format" }
move-core-types = { path = "../../move-core/types" }
diem-types = { path = "../../types" }
diem-workspace-hack = { path = "../../common/workspace-hack" }
move-binary-format = { path = "../../language/move-binary-format" }
move-core-types = { path = "../../language/move-core/types" }
diem-resource-viewer = { path = "../diem-resource-viewer"}
vm-genesis = { path = "../vm-genesis" }
diem-framework-releases = { path = "../../diem-framework/DPN/releases" }
move-vm-test-utils = { path = "../../move-vm/test-utils" }
diem-framework-releases = { path = "../../language/diem-framework/DPN/releases" }
move-vm-test-utils = { path = "../../language/move-vm/test-utils" }

structopt = "0.3.21"
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ rustyline = "8.0.0"
gag = "0.1.10"
bcs = "0.1.2"

cli = { path = "../../../testsuite/cli" }
diem-client = { path = "../../../sdk/client/"}
diem-config = { path = "../../../config" }
diem-framework-releases = { path = "../../diem-framework/DPN/releases"}
diem-genesis-tool = { path = "../../../config/management/genesis" }
diem-json-rpc-types = { path = "../../../json-rpc/types" }
diem-types = { path = "../../../types" }
diem-node = { path = "../../../diem-node"}
diem-temppath = { path = "../../../common/temppath" }
diem-workspace-hack = { path = "../../../common/workspace-hack" }
cli = { path = "../../testsuite/cli" }
diem-client = { path = "../../sdk/client/"}
diem-config = { path = "../../config" }
diem-framework-releases = { path = "../../language/diem-framework/DPN/releases"}
diem-genesis-tool = { path = "../../config/management/genesis" }
diem-json-rpc-types = { path = "../../json-rpc/types" }
diem-types = { path = "../../types" }
diem-node = { path = "../../diem-node"}
diem-temppath = { path = "../../common/temppath" }
diem-workspace-hack = { path = "../../common/workspace-hack" }
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 36 additions & 0 deletions diem-move/transaction-replay/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[package]
name = "diem-transaction-replay"
version = "0.1.0"
authors = ["Diem Association <[email protected]>"]
description = "Replay transactions stored on chain"
repository = "https://github.com/diem/diem"
homepage = "https://diem.com"
license = "Apache-2.0"
publish = false
edition = "2018"

[dependencies]
anyhow = "1.0.38"
structopt = "0.3.21"
hex = "0.4.3"
diem-workspace-hack = { path = "../../common/workspace-hack" }
diem-types = { path = "../../types" }
diem-state-view = { path = "../../storage/state-view" }
diem-validator-interface = { path = "../diem-validator-interface" }
diemdb = { path = "../../storage/diemdb" }
diem-vm = { path = "../../language/diem-vm" }
move-binary-format = { path = "../../language/move-binary-format"}
move-cli = { path = "../../language/tools/move-cli" }
move-vm-types = { path = "../../language/move-vm/types" }
move-core-types = { path = "../../language/move-core/types" }
move-vm-runtime = { path = "../../language/move-vm/runtime" }
move-vm-test-utils = { path = "../../language/move-vm/test-utils" }
diem-resource-viewer = { path = "../diem-resource-viewer" }
diem-framework = { path = "../../language/diem-framework" }
move-lang = { path = "../../language/move-lang" }
bcs = "0.1.2"
difference = "2.0.0"

[dev-dependencies]
vm-genesis = { path = "../vm-genesis" }
diem-framework-releases = { path = "../../language/diem-framework/DPN/releases" }
File renamed without changes.
File renamed without changes.
41 changes: 41 additions & 0 deletions diem-move/vm-genesis/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[package]
name = "vm-genesis"
version = "0.1.0"
edition = "2018"
authors = ["Diem Association <[email protected]>"]
description = "Diem vm genesis"
repository = "https://github.com/diem/diem"
homepage = "https://diem.com"
license = "Apache-2.0"
publish = false

[dependencies]
anyhow = "1.0.38"
once_cell = "1.7.2"
rand = "0.8.3"

bytecode-verifier = { path = "../../language/bytecode-verifier" }
bcs = "0.1.2"
diem-config = { path = "../../config" }
diem-crypto = { path = "../../crypto/crypto" }
diem-state-view = { path = "../../storage/state-view" }
diem-types = { path = "../../types" }
diem-workspace-hack = { path = "../../common/workspace-hack" }
move-bytecode-utils = { path = "../../language/tools/move-bytecode-utils" }
move-core-types = { path = "../../language/move-core/types" }
move-vm-runtime = { path = "../../language/move-vm/runtime"}
move-vm-types = { path = "../../language/move-vm/types" }
diem-framework = { path = "../../language/diem-framework" }
diem-framework-releases = { path = "../../language/diem-framework/DPN/releases" }
diem-transaction-builder = { path = "../../sdk/transaction-builder"}
move-binary-format = { path = "../../language/move-binary-format" }
diem-vm = { path = "../../language/diem-vm" }

[dev-dependencies]
proptest = "1.0.0"
proptest-derive = "0.3.0"
diem-proptest-helpers = { path = "../../common/proptest-helpers" }

[features]
default = []
fuzzing = ["diem-types/fuzzing", "move-vm-types/fuzzing"]
File renamed without changes.
File renamed without changes.
42 changes: 42 additions & 0 deletions diem-move/writeset-transaction-generator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[package]
name = "diem-writeset-generator"
version = "0.1.0"
authors = ["Diem Association <[email protected]>"]
description = "Generating writesets used for incident management"
repository = "https://github.com/diem/diem"
homepage = "https://diem.com"
license = "Apache-2.0"
publish = false
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.38"
structopt = "0.3.21"
tempfile = "3.2.0"
handlebars = "3.5.3"
hex = "0.4.3"
serde = { version = "1.0.124", default-features = false }
serde_json = "1.0.64"
once_cell = "1.7.2"

bytecode-verifier = { path = "../../language/bytecode-verifier" }
diem-workspace-hack = { path = "../../common/workspace-hack" }
diem-crypto-derive = { path = "../../crypto/crypto-derive" }
diem-crypto = { path = "../../crypto/crypto" }
diem-types = { path = "../../types" }
diem-framework-releases = { path = "../../language/diem-framework/DPN/releases" }
diem-framework = { path = "../../language/diem-framework" }
move-lang = { path = "../../language/move-lang" }
bcs = "0.1.2"
diem-state-view = { path = "../../storage/state-view" }
diem-validator-interface = { path = "../diem-validator-interface" }
diem-transaction-replay = { path = "../transaction-replay" }
diemdb = { path = "../../storage/diemdb" }
diem-vm = { path = "../../language/diem-vm" }
move-binary-format = { path = "../../language/move-binary-format"}
move-vm-types = { path = "../../language/move-vm/types" }
move-core-types = { path = "../../language/move-core/types" }
move-vm-runtime = { path = "../../language/move-vm/runtime" }
move-vm-test-utils = { path = "../../language/move-vm/test-utils" }
2 changes: 1 addition & 1 deletion execution/executor-test-helpers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ diem-workspace-hack = { path = "../../common/workspace-hack" }
storage-interface = { path = "../../storage/storage-interface" }
storage-service = { path = "../../storage/storage-service" }
diem-transaction-builder = { path = "../../sdk/transaction-builder" }
vm-genesis = { path = "../../language/tools/vm-genesis" }
vm-genesis = { path = "../../diem-move/vm-genesis" }
2 changes: 1 addition & 1 deletion execution/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ diem-temppath = { path = "../../common/temppath" }
diemdb = { path = "../../storage/diemdb" }
storage-interface = { path = "../../storage/storage-interface", features=["fuzzing"] }
diem-transaction-builder = { path = "../../sdk/transaction-builder" }
vm-genesis = { path = "../../language/tools/vm-genesis" }
vm-genesis = { path = "../../diem-move/vm-genesis" }

[features]
default = []
Expand Down
Loading

0 comments on commit b208105

Please sign in to comment.