You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---- nutype/src/lib.rs - (line 123) stdout ----
error: To validate string types with regex, the feature `regex` of the crate `nutype` must be enabled.
IMPORTANT: Make sure that your crate EXPLICITLY depends on `regex` and `lazy_static` crates.
And... don't forget to take care of yourself and your beloved ones. That is even more important.
--> nutype/src/lib.rs:129:19
|
9 | #[nutype(validate(regex = "^[0-9]{3}-[0-9]{3}$"))]
| ^^^^^
To do
Found out when the regression was introduced
Fix
Setup CI to catch this in the future
Update Justfile to run doc tests in nutype crate
The text was updated successfully, but these errors were encountered:
Steps to reproduce
With Rust 1.80.1
cd /nutype
(the dir withnutype
crate)cargo test
To do
Justfile
to run doc tests innutype
crateThe text was updated successfully, but these errors were encountered: