pub struct BuildDescription {
pub features: Vec<String>,
pub cfgs: Vec<String>,
}Expand description
The conditions a tree’s code is analyzed under.
What belongs here is what changes the answers rather than what changes the build: two runs that resolve the same names to the same things are one variant however differently they were invoked, and two that do not are two however alike the command line looked.
Empty on both counts when the helper found no project to describe. That is not the same claim as a project that enables nothing — a described build always has settings, because the target alone supplies a dozen — so nothing has to be spelled to tell the two apart.
Fields§
§features: Vec<String>Enabled features, each qualified by the package that enables it.
Qualified because a feature is declared per package: serde/derive and
ledger/derive are unrelated facts, and an unqualified list would let
one package’s selection stand in for another’s.
cfgs: Vec<String>The conditional-compilation settings the code is read under, as the compiler spells them.
Trait Implementations§
Source§impl Clone for BuildDescription
impl Clone for BuildDescription
Source§fn clone(&self) -> BuildDescription
fn clone(&self) -> BuildDescription
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more