arkworks-rs / std

A standard library wrapper for use in the `arkworks` ecosystem
https://www.arkworks.rs
Apache License 2.0
37 stars 33 forks source link

Improve `io` and `error` #3

Closed Pratyush closed 3 years ago

Pratyush commented 3 years ago

This makes the API match that of std better.

burdges commented 2 years ago

I'll remark that (1) https://github.com/dataphract/acid_io exists and that (2) small box, or more tiny box, optimizations are both doable in Rust and permit roughly pub type IOErrorType = TinyBox<dyn ErrorTrait> where ErrorTrait removes BackTrace https://github.com/rust-lang/rust/issues/48331#issuecomment-570436716 although doing so disrupts niches under some particular scenario.

Nothing to worry about right now. :)