Skip to content

Commit

Permalink
(#6) Move dependencies to workspace + git instead of path + cargo-hus…
Browse files Browse the repository at this point in the history
…ky hooks
  • Loading branch information
mario4tier committed Dec 13, 2022
1 parent 8258479 commit 225b4da
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 17 deletions.
49 changes: 48 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 21 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,24 @@ members = ["crates/dtp-core",
]

[workspace.package]
version = "0.1.0"
version = "0.1.0"

[workspace.dependencies]
# By default, DTP is built using the remote Sui devnet branch.
#
# Optionally, un-comment the "path"" sui-sdk dependency to make sure
# your running localnet and application use the same local Sui repo.
#
# Use "script/init-localnet" to create or update this local repo.
#
# See https://github.com/mario4tier/dtp/tree/main/script for doc
# about DTP directories structure.

#sui-sdk = { path = "../dtp-dev/sui-devnet/crates/sui-sdk/" }

# Comment this sui-sdk "git" dependency if using the above "path" dependency.
sui-sdk = { git = "https://github.com/MystenLabs/sui", branch = "devnet" }

tokio = { version = "1.22.0", features = ["full"] }
anyhow = "1.0.64"

5 changes: 1 addition & 4 deletions crates/dtp-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ name = "dtp-core"
version = "0.1.0"
edition = "2021"

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

[dependencies]
# See https://github.com/mario4tier/dtp/tree/main/script for doc about DTP directories structure.
sui_sdk = { path = "../../../dtp-dev/sui-devnet/crates/sui-sdk/", package="sui-sdk" }
sui-sdk = { workspace=true }
Loading

0 comments on commit 225b4da

Please sign in to comment.