From c531ce1cfe380f0d6c03a52657869dfef5be948c Mon Sep 17 00:00:00 2001 From: "Jean Marchand (Exotic Markets)" Date: Mon, 2 Sep 2024 17:59:24 +0200 Subject: [PATCH] utils: Fix tests (#57) --- Cargo.lock | 3 +-- scripts/cargo-publish.sh | 2 ++ utils/Cargo.toml | 3 +++ utils/macros/Cargo.toml | 4 ---- utils/{macros => }/tests/space.rs | 0 5 files changed, 6 insertions(+), 6 deletions(-) rename utils/{macros => }/tests/space.rs (100%) diff --git a/Cargo.lock b/Cargo.lock index dea9da25..be7a9c70 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3716,8 +3716,6 @@ version = "1.0.0" dependencies = [ "proc-macro2", "quote", - "sablier-utils", - "solana-sdk", "syn 2.0.58", ] @@ -3798,6 +3796,7 @@ dependencies = [ "pyth-solana-receiver-sdk", "sablier-macros", "serde", + "solana-sdk", "static-pubkey", ] diff --git a/scripts/cargo-publish.sh b/scripts/cargo-publish.sh index 2729705c..cfc6ab11 100755 --- a/scripts/cargo-publish.sh +++ b/scripts/cargo-publish.sh @@ -3,6 +3,8 @@ # Publish shared libs cargo publish -p sablier-cron sleep 25 +cargo publish -p sablier-macros +sleep 25 cargo publish -p sablier-utils sleep 25 cargo publish -p sablier-relayer-api diff --git a/utils/Cargo.toml b/utils/Cargo.toml index 671d3cdf..cf211f66 100644 --- a/utils/Cargo.toml +++ b/utils/Cargo.toml @@ -20,3 +20,6 @@ serde = { workspace = true, features = ["derive"] } static-pubkey.workspace = true sablier-macros = { path = "./macros" } pyth-solana-receiver-sdk.workspace = true + +[dev-dependencies] +solana-sdk.workspace = true diff --git a/utils/macros/Cargo.toml b/utils/macros/Cargo.toml index 455b7cc0..793f6cdc 100644 --- a/utils/macros/Cargo.toml +++ b/utils/macros/Cargo.toml @@ -19,7 +19,3 @@ proc-macro = true syn = { workspace = true, features = ["full"] } proc-macro2.workspace = true quote.workspace = true - -[dev-dependencies] -sablier-utils.workspace = true -solana-sdk.workspace = true diff --git a/utils/macros/tests/space.rs b/utils/tests/space.rs similarity index 100% rename from utils/macros/tests/space.rs rename to utils/tests/space.rs