Skip to main content

Module config

Module config 

Source
Expand description

TOML config file with named profiles. Auto-load order:

  1. --config <FILE> if explicit.
  2. smtp_test_tool.toml in the executable’s directory.
  3. smtp_test_tool.toml in the current working directory.
  4. OS-standard config dir (e.g. %APPDATA%/smtp-test-tool/smtp_test_tool.toml).

Structs§

Config
Full config = many named profiles.
Profile
All testable settings. This is what gets serialised to TOML and what the GUI/CLI render and edit.

Constants§

DEFAULT_FILE_NAME

Functions§

default_save_path
Where to save a brand-new config when the user clicks ‘Save’.
discover_config_path
Locate the most relevant config file on this machine. Trace-level events are emitted for each candidate so users can pinpoint a search miss by running with RUST_LOG=smtp_test_tool=trace.