From 64b0568fdc0731d312cc00a680f445439f383edc Mon Sep 17 00:00:00 2001 From: Miraculous Owonubi Date: Fri, 22 Nov 2024 00:42:48 +0300 Subject: [PATCH] restore apps --- Cargo.lock | 2 ++ apps/gen-ext/Cargo.toml | 3 ++- apps/only-peers/Cargo.toml | 1 + crates/sdk/macros/src/logic/method.rs | 2 +- scripts/build-all-apps.sh | 5 ++--- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ab7c0be65..d4aa212de 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2589,6 +2589,7 @@ version = "0.1.0" dependencies = [ "calimero-sdk", "calimero-sdk-near", + "calimero-storage", ] [[package]] @@ -5494,6 +5495,7 @@ name = "only-peers" version = "0.1.0" dependencies = [ "calimero-sdk", + "calimero-storage", ] [[package]] diff --git a/apps/gen-ext/Cargo.toml b/apps/gen-ext/Cargo.toml index a29fe22be..8d34c86c6 100644 --- a/apps/gen-ext/Cargo.toml +++ b/apps/gen-ext/Cargo.toml @@ -10,5 +10,6 @@ version = "0.1.0" crate-type = ["cdylib"] [dependencies] -calimero-sdk = {path = "../../crates/sdk"} +calimero-sdk = { path = "../../crates/sdk" } calimero-sdk-near = { path = "../../crates/sdk/libs/near" } +calimero-storage = { path = "../../crates/storage" } diff --git a/apps/only-peers/Cargo.toml b/apps/only-peers/Cargo.toml index cc3360bac..11b352580 100644 --- a/apps/only-peers/Cargo.toml +++ b/apps/only-peers/Cargo.toml @@ -11,3 +11,4 @@ crate-type = ["cdylib"] [dependencies] calimero-sdk = { path = "../../crates/sdk" } +calimero-storage = { path = "../../crates/storage" } diff --git a/crates/sdk/macros/src/logic/method.rs b/crates/sdk/macros/src/logic/method.rs index fedf1fd8b..57b508b16 100644 --- a/crates/sdk/macros/src/logic/method.rs +++ b/crates/sdk/macros/src/logic/method.rs @@ -134,7 +134,7 @@ impl ToTokens for PublicLogicMethod<'_> { call = quote_spanned! {ret.ty.span()=> let output = #call; let output = { - #[expect(unused_imports)] + #[allow(unused_imports)] use ::calimero_sdk::__private::IntoResult; match ::calimero_sdk::__private::WrappedReturn::new(output) .into_result() diff --git a/scripts/build-all-apps.sh b/scripts/build-all-apps.sh index 827c97e05..685d38acc 100755 --- a/scripts/build-all-apps.sh +++ b/scripts/build-all-apps.sh @@ -7,9 +7,8 @@ cd "$(dirname $0)" BUILD_SCRIPTS=( "../apps/kv-store/build.sh" - # todo! update to use CRDTs - # "../apps/gen-ext/build.sh" - # "../apps/only-peers/build.sh" + "../apps/gen-ext/build.sh" + "../apps/only-peers/build.sh" ) run_script() {