pub struct Project {
pub sources: Vec<String>,
pub options: CompileOptions,
pub image: Option<String>,
pub preinit: bool,
pub warnings: bool,
pub warnings_as_errors: bool,
pub verbose: bool,
pub debug: bool,
pub resources: Vec<ResourceSpec>,
pub messages: Vec<String>,
pub manifest: bool,
pub libraries: Vec<String>,
}Expand description
A program to build.
Fields§
§sources: Vec<String>The source files, in the order they are put together.
options: CompileOptionsHow to compile them. The time stamp is the caller’s to set.
image: Option<String>Where to write the image, if anything said.
preinit: boolThe program is to be run once before the image is written
(preinitialization): --preinit, or by default unless -d.
warnings: boolWarnings are reported (-w0 says not).
warnings_as_errors: boolA warning stops the build (-we).
verbose: boolSay what is being done (-v).
debug: boolThe program is built for debugging (-d): its resources are
linked to their files rather than copied into the image.
resources: Vec<ResourceSpec>The files to bundle into the image as resources, in order: those
the libraries name, then those after -res.
messages: Vec<String>What was said about the project that does not stop the build, in the words the reference uses: problems with libraries.
manifest: boolIt was read from a manifest (hexicon.toml), and not from the
command line alone.
libraries: Vec<String>The manifests of the libraries it is built with, in the order they were read: those the project names first, each before the libraries it is built on, and the system library last.