dryvPacks

@dryv/validator-dtosv0.1.0

Rust serde DTOs with derive-based validator constraints.

Rust Validator DTOsValidationUnitPublished 7 days ago2 downloads

dryv pack add @dryv/validator-dtos
301 BRaw ↗
jinja
{%- for export in file.exports %}
mod {{ export.path.relative | replace('.rs', '') | replace('./', '') }};
{%- endfor %}

{%- for export in file.exports %}{% if export.symbol %}
pub use {{ export.path.relative | replace('.rs', '') | replace('./', '') }}::{{ export.symbol }};
{%- endif %}{% endfor %}