Skip to content

Commit

Permalink
Merge pull request #9 from bandprotocol/restructure-cargo
Browse files Browse the repository at this point in the history
Restructure Cargo files to reuse properties
  • Loading branch information
RogerKSI authored Jan 26, 2024
2 parents 0331639 + a6ee7a0 commit 3aa9ba9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
[workspace.package]
version = "0.1.8"
edition = "2021"
license = "MIT OR Apache-2.0"

[workspace]
members = ["price-adapter-raw", "price-adapter"]
resolver = "2"

[workspace.dependencies]
price-adapter = { version = "0.1.8", path = "price-adapter" }
price-adapter-raw = { version = "0.1.8", path = "price-adapter-raw" }
6 changes: 3 additions & 3 deletions price-adapter-raw/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "price-adapter-raw"
description = "price-adapter-raw"
version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
version.workspace = true
edition.workspace = true
license.workspace = true

[dependencies]
reqwest = { version = "0.11.22", features = ["json"] }
Expand Down
8 changes: 4 additions & 4 deletions price-adapter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "price-adapter"
description = "price-adapter"
version = "0.1.8"
edition = "2021"
license = "MIT OR Apache-2.0"
version.workspace = true
edition.workspace = true
license.workspace = true

[dependencies]
price-adapter-raw = { version = "0.1.0", path = "../price-adapter-raw" }
price-adapter-raw.workspace = true
thiserror = "1.0.50"
tokio = { version = "1.0", features = ["full"] }
serde = { version = "1.0.192", features = ["serde_derive"] }
Expand Down

0 comments on commit 3aa9ba9

Please sign in to comment.