codegen!() { /* proc-macro */ }Expand description
Generate subplot scenario code from a given Subplot input
The first, and only mandatory, argument to this is a string representing the
path to the subplot file to load, relative to the CARGO_MANIFEST_DIR of
the crate being built.
So, if you have Cargo.toml and myprog.subplot at the same level,
you can do codegen!("myprog.subplot")
If you want to limit the generated scenarios, for example if you want
to exclude scenarios labelled with slow, or only include scenarios
labelled critical then you can use the include and exclude named
arguments. For example codegen!("foo.subplot", include="critical")
or codegen!("foo.subplot", exclude="slow")
The include/exclude behaviour, and filter syntax, matches that used by
the subplot codegen subcommand from subplot-bin.