Skip to content

Commit

Permalink
sui: move into crates directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed May 23, 2022
1 parent 98417b0 commit 9e3e3ae
Show file tree
Hide file tree
Showing 43 changed files with 34 additions and 33 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[workspace]
members = [
"crates/sui",
"crates/sui-adapter",
"crates/sui-adapter-transactional-tests",
"crates/sui-config",
Expand All @@ -20,7 +21,6 @@ members = [
"crates/sui-verifier-transactional-tests",
"crates/test-utils",
"crates/x",
"sui",
]

[profile.release]
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-faucet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ serde = { version = "1.0.137", features = ["derive"] }
serde_json = "1.0.80"
tower = { version = "0.4.12", features = ["util", "timeout", "load-shed", "limit"] }

sui = { path = "../../sui" }
sui = { path = "../sui" }
sui-types = { path = "../sui-types" }
sui-core = { path = "../sui-core" }

Expand Down
28 changes: 14 additions & 14 deletions sui/Cargo.toml → crates/sui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ multiaddr = "0.14.0"
mysten-network = { git = "https://github.com/MystenLabs/mysten-infra", rev = "7c247967e5a5abd59ecaa75bc62b05bcdf4503fe" }

bcs = "0.1.3"
sui-core = { path = "../crates/sui-core" }
sui-storage = { path = "../crates/sui-storage" }
sui-adapter = { path = "../crates/sui-adapter" }
sui-framework = { path = "../crates/sui-framework" }
sui-network = { path = "../crates/sui-network" }
sui-config = { path = "../crates/sui-config" }
sui-types = { path = "../crates/sui-types" }
sui-verifier = { path = "../crates/sui-verifier" }
sui-open-rpc = { path = "../crates/sui-open-rpc" }
sui-open-rpc-macros = { path = "../crates/sui-open-rpc-macros" }
sui-json = { path = "../crates/sui-json" }
sui-gateway = { path = "../crates/sui-gateway" }
sui-core = { path = "../sui-core" }
sui-storage = { path = "../sui-storage" }
sui-adapter = { path = "../sui-adapter" }
sui-framework = { path = "../sui-framework" }
sui-network = { path = "../sui-network" }
sui-config = { path = "../sui-config" }
sui-types = { path = "../sui-types" }
sui-verifier = { path = "../sui-verifier" }
sui-open-rpc = { path = "../sui-open-rpc" }
sui-open-rpc-macros = { path = "../sui-open-rpc-macros" }
sui-json = { path = "../sui-json" }
sui-gateway = { path = "../sui-gateway" }

rustyline = "9.1.2"
rustyline-derive = "0.6.0"
Expand Down Expand Up @@ -77,9 +77,9 @@ shell-words = "1.1.0"
tracing-test = "0.2.1"
pretty_assertions = "1.2.0"
tokio-util = { version = "0.7.2", features = ["codec"] }
sui-node = { path = "../crates/sui-node" }
sui-node = { path = "../sui-node" }

test-utils = { path = "../crates/test-utils" }
test-utils = { path = "../test-utils" }

[features]
benchmark = ["narwhal-node/benchmark"]
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ struct Options {
action: Action,
}

const FILE_PATH: &str = "crates/sui-open-rpc/spec/openrpc.json";
const OBJECT_SAMPLE_FILE_PATH: &str = "crates/sui-open-rpc/samples/objects.json";
const TRANSACTION_SAMPLE_FILE_PATH: &str = "crates/sui-open-rpc/samples/transactions.json";
const FILE_PATH: &str = "sui-open-rpc/spec/openrpc.json";
const OBJECT_SAMPLE_FILE_PATH: &str = "sui-open-rpc/samples/objects.json";
const TRANSACTION_SAMPLE_FILE_PATH: &str = "sui-open-rpc/samples/transactions.json";

#[tokio::main]
async fn main() {
println!("{}", std::env::current_dir().unwrap().display());
let options = Options::parse();
let open_rpc = RpcGatewayOpenRpc::open_rpc();
match options.action {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "Examples"
version = "0.0.1"

[dependencies]
Sui = { local = "../../../../../crates/sui-framework" }
Sui = { local = "../../../../../sui-framework" }

[addresses]
Examples = "0x0"
10 changes: 10 additions & 0 deletions crates/sui/src/unit_tests/data/custom_genesis_package_2/Move.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "publish_init_param"
version = "0.0.0"

[addresses]
Test = "0x0"

[dependencies]
MoveStdlib = { local = "../../../../../sui-framework/deps/move-stdlib/" }
Sui = { local = "../../../../../sui-framework" }
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "Examples"
version = "0.0.1"

[dependencies]
Sui = { local = "../../../../../crates/sui-framework" }
Sui = { local = "../../../../../sui-framework" }

[addresses]
Examples = "0x0"
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async fn test_publish() -> Result<(), anyhow::Error> {
let gas = objects.first().unwrap();

let compiled_modules = build_move_package_to_bytes(
Path::new("../sui_programmability/examples/fungible_tokens"),
Path::new("../../sui_programmability/examples/fungible_tokens"),
false,
)?
.iter()
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.
File renamed without changes.
2 changes: 1 addition & 1 deletion crates/test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ sui-config = { path = "../sui-config" }
sui-types = { path = "../sui-types" }
sui-core = { path = "../sui-core" }
sui-network = { path = "../sui-network" }
sui = { path = "../../sui" }
sui = { path = "../sui" }
10 changes: 0 additions & 10 deletions sui/src/unit_tests/data/custom_genesis_package_2/Move.toml

This file was deleted.

0 comments on commit 9e3e3ae

Please sign in to comment.