Skip to main content

Crate stegobench_cli

Crate stegobench_cli 

Source
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 None when the registry offers no answer.
unavailable_reason
PRESENT IS NOT THE SAME AS DRIVABLE, AND score USED TO TREAT IT AS THE SAME.