Problem: I want #![enable(unwrap_newtypes, implicit_some)] to be the default, and don't want my users to require to write it in every RON file.
Current workaround: Inject that line before parsing. It's suboptimal because I can't use BufReader and if there's a parsing error, the reported line number will be wrong from the user's POV.
Proposed Solution: Ability to configure Deserializer to enable extensions before parsing.
Problem: I want
#![enable(unwrap_newtypes, implicit_some)]to be the default, and don't want my users to require to write it in every RON file.Current workaround: Inject that line before parsing. It's suboptimal because I can't use
BufReaderand if there's a parsing error, the reported line number will be wrong from the user's POV.Proposed Solution: Ability to configure
Deserializerto enable extensions before parsing.