The rust sdl2 bindings use String everywhere for errors, which makes it play poorly with anyhow and similar crates. This wasn't done in the sdl2 crate because it was a breaking change. Since sdl3 is a breaking change itself, it may be worth doing something in this direction.
Could be as easy as a tuple struct SdlError(String) that implements Error as mentioned in the PR below.
For reference:
The rust sdl2 bindings use String everywhere for errors, which makes it play poorly with anyhow and similar crates. This wasn't done in the sdl2 crate because it was a breaking change. Since sdl3 is a breaking change itself, it may be worth doing something in this direction.
Could be as easy as a tuple struct
SdlError(String)that implements Error as mentioned in the PR below.For reference: