cargo add --git https://github.com/CCZU-OSSA/cczuni.git
todo!()
In CCZU-Client-API
, we used this code to impl Sync
and Send
.
unsafe impl Send for #ident {}
unsafe impl Sync for #ident {}
There are some risks to use with it.
In cczuni
, we use Arc
and tokio::sync
to ensure the thread safe.
With less unnecessary clone, new...
cczuni
is faster and smaller!
In cczuni
, most traits are impl for generic Client
.
We provide a default crate::impls::client::DefaultClient
, If you want to custom a Client
, just impl Client
.
todo!()