New and Improved Rust CDK: First-class support for Rust Canister Development

I’m really excited for an even better Rust CDK, which has been fantastic to work with already.

I could really use some help or guidance on this thread post: Condvar wait not supported

and this issue: Get return values from `ic_cdk::block_on` · Issue #7 · dfinity/cdk-rs · GitHub

I need to figure out how to perform an asynchronous operation from within a function that is not async. I have a dependency that has an API that requires a synchronous function. From within that synchronous function I need to call asynchronous functions such as to do a cross-canister call. This doesn’t work and I really need to find a workaround.

Really if this issue could get resolved somehow that would do it: Get return values from `ic_cdk::block_on` · Issue #7 · dfinity/cdk-rs · GitHub

I’m afraid I’m going to have to do some crazy engineering to get around this, I would love some help.

3 Likes