Considered Solutions
I can also work around by using Arc<T> in downstream clients.
Considerations
This shouldn't have any impact on security or performance. Anyone that was interacting directly with the Custom variant may have a breaking change since it is wrapped in an Arc<T> now.
I agree that making a major bump just for this feature is not worth the effort, so I'm fine with leaving this to sleep and in the meantime I will just to_string() downstream.
Overview This makes
candid::Error
clonable, which makes it easier for downstream clients to also make theirError
types cloneable.I've made a related PR for agent-rs.
Considered Solutions I can also work around by using
Arc<T>
in downstream clients.Considerations This shouldn't have any impact on security or performance. Anyone that was interacting directly with the
Custom
variant may have a breaking change since it is wrapped in anArc<T>
now.