Skip to main content

Module build

Module build 

Source
Expand description

The build behind this Sioul (docs/building.md, “Which build”): its version and the commit it was built from, said in sioul --version, in Settings, in this device’s entry among your devices and in its records, so that what each device wrote can be traced to the code that wrote it.

Constants§

COMMIT
The commit, as the build found it (build.rs): twelve characters of its hash (“eff8661abcde”), “-dirty” after them when the tree held changes not committed; SIOUL_COMMIT’s value where the repository was not there; “unknown”.
DESCRIBED
Both, as said everywhere: “0.0.3 (eff8661abcde)”.
VERSION
The version, as Cargo.toml says it: “0.0.3”.

Functions§

described
A build as an entry or a record says it, in words: “0.0.3 (eff8661abcde)”; the version alone when the commit is unsaid (an older Sioul); “” when neither is.
older
Whether version comes before than, number by number (“0.0.2” before “0.0.10”); neither when either does not read as numbers (nothing said).