Serhii Potapov
Serhii Potapov
Do you have any other potential sanitization functions that could fail?
@sazzer Thanks for being long term nutype user! Yes, `derive_unsafe` (most likely will be soon renamed to `derive_unchecked`, see https://github.com/greyblake/nutype/issues/221), passed the name of trait into the inner module, where...
I've created a dedicated issue for this, it falls into a more generic issue of bypassing macro attributes: https://github.com/greyblake/nutype/issues/229
I've opened a tiny fix in https://github.com/cloudhead/nonempty/pull/69
@AlisCode @gobanos @boyswan What do you guys think of the following syntax? ```rs #[nutype( sanitize(trim), validate(with = validate_name, error = NameError), derive(Debug, AsRef, PartialEq, Deref), )] struct Name(String); ``` where...
@AlisCode Thank you for your valuable input! I had a similar thing to what you suggest in mind, though I see it as an orthogonal to this story (support of...
@DJDuque Could you explain how `winnow` error idea would fit here?
@boyswan @AlisCode @DJDuque I just released [0.5.0-beta.2](https://crates.io/crates/nutype/0.5.0-beta.2), with the support of custom validation and errors. I'd appreciate if you find a bit of time to try it out and give...
@memark Sorry my bad.
@TheBestTvarynka Thanks for the report! Yeah, at the moment nutype generates it's own `Deserialize` implementation with respect to the sanitization & validaiton, not paying any attention to serde attributes. Does...