RadicalZephyr / sodium-rust

FRP implementation in Rust
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Add global `SodiumCtx` APIs #21

Open RadicalZephyr opened 7 months ago

RadicalZephyr commented 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().