Any rust example like this?
add rust pub-sub example by weitaolee · Pull Request #109 · dfinity/examples · GitHub
I created a rust example and submitted a PR
When writing this example, I found some problems: I tried to write exactly according to motoko’s example, but the init function motoko and rust behave inconsistently; when the init function has parameters, motoko can execute the init function after canister install, but rust you must use dfx canister install --arguments to install it. Please pay attention to this situation. If Anybody who can tell me the reasons here in depth, please give me some advice. And,thanks for the help provided by @flyq