Open RadicalZephyr opened 7 months ago
I don't think there's any issue with storing a SodiumCtx either in a thread local variable or an actual lazily initialized global variable. This would allow having simpler and more idiomatically Rusty APIs like na::StreamSink::new().
SodiumCtx
na::StreamSink::new()
I don't think there's any issue with storing a
SodiumCtx
either in a thread local variable or an actual lazily initialized global variable. This would allow having simpler and more idiomatically Rusty APIs likena::StreamSink::new()
.