Closed as not planned
Description
I'm sorry for bothering you, but I'm interacting with cargo library a lot and I can't help but wonder - why is there so many complications in the API? There are many lifetimes, RefCell
s (that make stuff !Sync
etc.
Like, why can't Config
be taken by move so that Workspace
and bunch of other structs doesn't require lifetime? Why not just Arc<Mutex<_>>
stuff instead of playing with RefCell
s? I don't think there's much performance wins to be had in the code that will always be blocked on IO anyway. Is there something I am missing here?