dfinity / agent-rs

A collection of libraries and tools for building software around the Internet Computer, in Rust.
https://sdk.dfinity.org/
Apache License 2.0
123 stars 76 forks source link

Refactor ic-utils to not require Send for candid::Type #449

Open chenyan-dfinity opened 1 year ago

chenyan-dfinity commented 1 year ago

Currently, ic-utils's update/query builder requires candid::Type to have Send trait, due to the imprecise scoping of async. Some refactoring is needed to make the async scope more precise. As a workaround, #448 adds Arc around candid::Type, but there is a significant slowdown in deserialization.

dfx-json commented 1 year ago

@chenyan-dfinity can this issue be closed?

chenyan-dfinity commented 1 year ago

Sure, once we make a new release for ic-utils.