Just trying to use this package here https://docs.rs/ic-cdk/latest/ic_cdk/api/call/fn.call.html but I got way too many errors with it.
This is my first time using async with let v = futures::executor::block_on(example());
https://gist.github.com/rust-play/c6e3b5c305e571d459ef392e64efeafc
So, After implementing this just like the docs says I got this wired error
[E0277]: the trait bound `for<'a> std::string::String: ArgumentDecoder<'a>` is not satisfied
--> frontend/src/main.rs:28:103
|
28 | ..., String)> = ic_cdk::api::call::call(principal, "greet", ("Ali".to_string(), )).await;
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'a> ArgumentDecoder<'a>` is not implemented for `std::string::String`
|
= help: the following other types implement trait `ArgumentDecoder<'a>`:
()
(A, B)
(A, B, C)
(A, B, C, D)
(A, B, C, D, E)
(A, B, C, D, E, F)
(A, B, C, D, E, F, G)
(A, B, C, D, E, F, G, H)
and 9 others