Repository navigation
tmpmail 0.3.0
tmpmail 0.3.0 no longer refuses to start over a config key it doesn't know, and lets you set the per-request timeout in the config file. One change breaks library users who build Config themselves; the CLI works as before.
Breaking (library only)
tmpmail::config::Configis#[non_exhaustive]and has new fields (http_timeout, and private ones for the unknown keys and the file it was read from), so it can no longer be built with a struct literal. UseConfig::load()orConfig::parse(), orConfig::default()and then set fields. CLI users aren't affected.
Changed
- Unknown config keys are a warning, not an error: a key in
config.tomlthat this version doesn't know (a typo, or one from a newer tmpmail) is ignored with atmpmail: unknown key …warning on stderr.-qand--jsonsilence it. tmpmail 0.2.0 and earlier refuse such a file. Known keys are still checked strictly: a bad value is an error.
New
http_timeoutconfig key: seconds before a single request to a provider gives up (default 20).TMPMAIL_HTTP_TIMEOUTstill overrides it.- Library: the watcher loop can switch to a new config while it runs (
Watcher::set_config); it reports only unknown keys the previous config didn't have.
The desktop app in gui/ is not part of this release.
Install
cargo install tmpmail
cargo binstall tmpmail # prebuilt binary, no compiling
brew install qorvyx/tap/tmpmail # macOS or LinuxOr download a prebuilt binary below: Linux (x86_64, aarch64, fully static), macOS (Intel, Apple silicon) and Windows. Check it against SHA256SUMS, or verify its build attestation:
gh attestation verify tmpmail-0.3.0-x86_64-unknown-linux-musl.tar.gz --repo qorvyx/tmpmail