From 4b7e64eae81be4a8e58a0b1bb0a1e8b69dc12c51 Mon Sep 17 00:00:00 2001 From: ozwaldorf Date: Thu, 1 Sep 2022 12:25:28 -0400 Subject: [PATCH] fix: only export candid tmp interface when targetting wasm --- ic-kit-macros/src/export_service.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ic-kit-macros/src/export_service.rs b/ic-kit-macros/src/export_service.rs index 6a3acf3..90871b8 100644 --- a/ic-kit-macros/src/export_service.rs +++ b/ic-kit-macros/src/export_service.rs @@ -238,6 +238,7 @@ pub fn export_service(input: DeriveInput, save_candid_path: Option) } } + #[cfg(target_family = "wasm")] #[doc(hidden)] #[export_name = "canister_query __get_candid_interface_tmp_hack"] fn _ic_kit_canister_query___get_candid_interface_tmp_hack() {