pub struct RootPackage {
pub package: Package,
pub branch_alias: Option<(String, String)>,
pub minimum_stability: String,
pub prefer_stable: bool,
pub stability_flags: BTreeMap<String, i32>,
pub aliases: Vec<RootAlias>,
pub references: BTreeMap<String, String>,
pub platform_overrides: Map<String, Value>,
pub manifest: Value,
}Fields§
§package: Package§branch_alias: Option<(String, String)>RootAliasPackage: (normalized alias, pretty alias) if extra.branch-alias applies.
minimum_stability: String§prefer_stable: bool§stability_flags: BTreeMap<String, i32>name -> stability rank (BasePackage::STABILITIES).
aliases: Vec<RootAlias>§references: BTreeMap<String, String>name -> git reference.
platform_overrides: Map<String, Value>config.platform.
manifest: ValueImplementations§
Source§impl RootPackage
impl RootPackage
Sourcepub fn load(
manifest: &Value,
project_dir: &Path,
) -> Result<RootPackage, RootError>
pub fn load( manifest: &Value, project_dir: &Path, ) -> Result<RootPackage, RootError>
Loads composer.json (already parsed) with the root version guessed by vivacity-core (same rules as RootPackageLoader + VersionGuesser).
Sourcepub fn all_requires(&self) -> Links
pub fn all_requires(&self) -> Links
require + require-dev links (array_merge: dev-requires
overwrite a duplicate target, at its position).
Trait Implementations§
Source§impl Clone for RootPackage
impl Clone for RootPackage
Source§fn clone(&self) -> RootPackage
fn clone(&self) -> RootPackage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RootPackage
impl RefUnwindSafe for RootPackage
impl Send for RootPackage
impl Sync for RootPackage
impl Unpin for RootPackage
impl UnsafeUnpin for RootPackage
impl UnwindSafe for RootPackage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more