Skip to main content

Module verify_config

Module verify_config 

Source
Expand description

[verify] section of the user config.toml, read by doiget verify.

Mirrors crate::user_extension: this is a minimal, section-scoped reader (NOT the full docs/CONFIG.md resolution ladder). It parses only the [verify] table, tolerates every other section, and treats a missing file as “all defaults” rather than an error. CLI flags (--strict) layer on top in the command handler; this module knows nothing about flags or env vars.

[verify]
# How to treat an entry that carries no DOI / arXiv id:
#   "warn"  — report it, do not fail the run (default)
#   "error" — count it as a failure (exit non-zero)
#   "skip"  — do not emit a record for it at all
on_missing_id = "warn"
# Treat a well-formed id that does not resolve as a failure.
strict = false

Structs§

VerifyConfig
Resolved [verify] configuration.

Enums§

OnMissingId
Policy for an entry with no DOI / arXiv identifier.
VerifyConfigError
Why loading the [verify] section failed.

Functions§

load
Load the [verify] section from config_path.