premortem-derive

Crates.iopremortem-derive
lib.rspremortem-derive
version0.3.0
created_at2025-11-25 23:39:48.356279+00
updated_at2025-11-26 05:27:42.09729+00
descriptionDerive macros for the premortem configuration validation library
homepage
repositoryhttps://github.com/iepathos/premortem
max_upload_size
id1950639
size53,076
Glen Baker (iepathos)

documentation

README

premortem-derive

CI Coverage Security Crates.io Documentation License

Derive macros for the premortem configuration validation library.

Usage

This crate is typically used through the main premortem crate with the derive feature (enabled by default):

[dependencies]
premortem = "0.1"
use premortem::Validate;
use serde::Deserialize;

#[derive(Debug, Deserialize, Validate)]
struct AppConfig {
    #[validate(non_empty)]
    pub host: String,

    #[validate(range(1..=65535))]
    pub port: u16,
}

Direct Dependency

If you need to depend on this crate directly:

[dependencies]
premortem-derive = "0.1"

Documentation

See the premortem documentation for full usage details and available validators.

License

MIT

Commit count: 0

cargo fmt