Can I use the `import` macro from `ic_cdk_macros` in normal rust code i.e. outside a canister

This is the macro in question: cdk-rs/lib.rs at main · dfinity/cdk-rs · GitHub

Thank you!

import macro is only for canister. If you just want Rust binding from Candid, you can use didc bind.
FYI, candid/tools/didc at master · dfinity/candid · GitHub

1 Like