Expand description
Library half of the stegobench command, split out purely so build.rs
can import the command definition and generate man pages from the same
source the binary parses against. There is no other reason for a lib
target here; the behaviour lives in the binary.
Modules§
- cli
- examine
- fetch
stegobench fetch: the command, the transport it runs over, and the one line that offers a real corpus to somebody holding a demonstration one.- fixtures
- Finding the self-test fixtures, from wherever the command was typed.
- help_
topics - Conceptual material that does not belong on a flag.
- metrics
stegobench metrics: the one place a detection number is computed.- needs
- “What does this need from me?”, answered the same way for every tool.
- registry
- Finding the tool registry, from wherever the command was typed.
- report
stegobench report: the last mile, where a number meets a page.- score
stegobench score: the headline verb, joined up.
Constants§
- LOOKS_
LIKE_ AN_ IMAGE - Image file extensions, lowercased, that a person is likely to have a folder of. Not the set the scorer supports: this is a heuristic for recognising “somebody’s pictures”, so it is deliberately wider.
- STARTER_
ID - The registry id of the corpus this binary carries a copy of.
Functions§
- human_
duration - Seconds as something a person can judge a decision against.
- plain_
io - An IO error as a sentence, without the operating system’s error number.
- resolved_
path - A path as somewhere a reader could go, rather than as it was typed.
- shorten_
digests - Any
@sha256:<64 hex>in a sentence, cut to its first eight characters. - smallest_
way_ in - The cheapest concrete way to get one working detector, or
Nonewhen the registry offers no answer. - unavailable_
reason - PRESENT IS NOT THE SAME AS DRIVABLE, AND
scoreUSED TO TREAT IT AS THE SAME.