Cargo Features

nutype_macros has no features set by default.

[dependencies]
nutype_macros = { version = "0.5.1", features = ["arbitrary", "regex"] }
std serde schemars08 new_unchecked arbitrary

Features from optional dependencies

regex implicit feature

Enables regex

regex is used at compile-time to verify that a string literal provided as regex = "^foo|bar$" can be compiled to a Regex without errors.