diff --git a/Cargo.toml b/Cargo.toml index af6ee42..a87dc64 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,18 @@ members = [ "market_making" ] +[workspace.dependencies] +anchor-lang = "0.28.0" +anchor-spl = "0.28.0" +anchor-client = "0.28.0" +anyhow = "1.0.71" +clap = "4.3.3" +mpl-token-metadata = "3.0.1" +proptest = "1.2.0" +shellexpand = "3.1.0" +spl-associated-token-account = "1" +tokio = "~1.14.1" + [profile.release] overflow-checks = true lto = "fat" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index aa681f8..5d9a772 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -8,18 +8,18 @@ authors = ["tian "] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -anchor-lang = "0.28.0" -anchor-spl = "0.28.0" -anchor-client={version="0.28.0", features=["async"]} -clap = { version = "4.3.3", features = ["derive"] } -anyhow = "1.0.71" -shellexpand = "3.1.0" +anchor-lang.workspace = true +anchor-spl.workspace = true +anchor-client = { workspace = true, features=["async"] } +clap = { workspace = true, features = ["derive"] } +anyhow.workspace = true +shellexpand.workspace = true rust_decimal = { version = "1.31.0", features = ["maths"] } lb_clmm = { path = "../programs/lb_clmm", features = ["cpi"] } -spl-associated-token-account = "1" -mpl-token-metadata = "3.0.1" +spl-associated-token-account.workspace = true +mpl-token-metadata.workspace = true rand = "0.8.5" -tokio = {version = "~1.14.1", features = ["full", "parking_lot"]} +tokio = { workspace = true, features = ["full", "parking_lot"] } [dev-dependencies] -proptest = "1.2.0" \ No newline at end of file +proptest.workspace = true \ No newline at end of file diff --git a/market_making/Cargo.toml b/market_making/Cargo.toml index c5246c1..8d7c7ab 100644 --- a/market_making/Cargo.toml +++ b/market_making/Cargo.toml @@ -6,22 +6,22 @@ edition = "2021" authors = ["andrew "] [dependencies] -tokio = {version = "~1.14.1", features = ["full"] } +tokio = { workspace = true, features = ["full"] } hyper = { version = "0.14.17", features = ["full"] } routerify = "3" ureq = { version = "2.0.0", features = ["json"]} -anchor-client={version="0.28.0", features=["async"]} -anchor-spl="0.28.0" -anchor-lang="0.28.0" +anchor-client = { workspace = true, features=["async"] } +anchor-spl.workspace = true +anchor-lang.workspace = true env_logger="0.9.0" log="0.4.17" -clap = { version = "4.3.3", features = ["derive"] } -shellexpand = "3.1.0" -anyhow = "1.0.71" +clap = { workspace = true, features = ["derive"] } +shellexpand.workspace = true +anyhow.workspace = true lb_clmm = { path = "../programs/lb_clmm", features = ["cpi"] } serde_json = "1.0.48" serde = { version = "1.0.104", features = ["derive"] } -spl-associated-token-account = "1" +spl-associated-token-account.workspace = true solana-transaction-status="1.16.12" bs58 = "0.5.0" chrono="0.4.31" diff --git a/programs/lb_clmm/Cargo.toml b/programs/lb_clmm/Cargo.toml index 61f8449..c861b9b 100644 --- a/programs/lb_clmm/Cargo.toml +++ b/programs/lb_clmm/Cargo.toml @@ -19,19 +19,19 @@ alpha-access = [] test-bpf = [] [dependencies] -anchor-lang = { version = "0.28.0", features = ["event-cpi"] } -anchor-spl = "0.28.0" +anchor-lang = { workspace = true, features = ["event-cpi"] } +anchor-spl.workspace = true uint = "0.8.5" bytemuck = { version = "1.13.1", features = ["derive", "min_const_generics"] } ruint = "1.3.0" num-traits = "0.2.16" num-integer = "0.1.45" -mpl-token-metadata = "3.0.1" +mpl-token-metadata.workspace = true solana-program = "1.16.0" num_enum = "0.7.1" [dev-dependencies] -proptest = "1.2.0" +proptest.workspace = true rand = "0.7.3" solana-program-test = "1.16.0" solana-sdk = "1.16.0"