Skip to main content

run_examples

Function run_examples 

pub fn run_examples() -> Result<(), Vec<Error>>
Expand description

Runs every example under examples/rust/.

Every one, not only the parity.toml pairs: running only the paired ones would leave the unpaired examples compiled but never executed, which is exactly the state the tree’s single example was in before M7.D4 (G3).

The listing descends into subdirectories, and finding nothing is a failure — see manifest::rust_sources and the empty check below.

§Errors

One entry per example that did not exit 0, collected. One entry, too, if the directory holds no example at all.