Skip to content

tmpmail 0.3.0

Choose a tag to compare

@github-actions github-actions released this 31 Oct 04:40
· 96 commits to main since this release

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::Config is #[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. Use Config::load() or Config::parse(), or Config::default() and then set fields. CLI users aren't affected.

Changed

  • Unknown config keys are a warning, not an error: a key in config.toml that this version doesn't know (a typo, or one from a newer tmpmail) is ignored with a tmpmail: unknown key … warning on stderr. -q and --json silence 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_timeout config key: seconds before a single request to a provider gives up (default 20). TMPMAIL_HTTP_TIMEOUT still 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 Linux

Or 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