Enumerationswift-package-manager 6.0.1PackageModel
PackageDependency
Represents a package dependency.
PackageDependencyDescription.swift:21enum PackageDependency
Cases
Citizens in PackageModel
Conformances
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Sendable
Types
Type members
static func fileSystem(identity: PackageIdentity, nameForTargetDependencyResolutionOnly: String?, path: AbsolutePath, productFilter: ProductFilter
) -> PackageDependency static func localSourceControl(identity: PackageIdentity, nameForTargetDependencyResolutionOnly: String?, path: AbsolutePath, requirement: SourceControl.Requirement, productFilter: ProductFilter
) -> PackageDependency static func registry(identity: PackageIdentity, requirement: Registry.Requirement, productFilter: ProductFilter
) -> PackageDependency static func remoteSourceControl(identity: PackageIdentity, nameForTargetDependencyResolutionOnly: String?, url: SourceControlURL, requirement: SourceControl.Requirement, productFilter: ProductFilter
) -> PackageDependency static func sourceControl(identity: PackageIdentity, nameForTargetDependencyResolutionOnly: String?, location: SourceControl.Location, requirement: SourceControl.Requirement, productFilter: ProductFilter
) -> PackageDependency
Instance members
var description: String
var explicitNameForModuleDependencyResolutionOnly: String?
var identity: PackageIdentity
var nameForModuleDependencyResolutionOnly: String
var productFilter: ProductFilter
func encode(to: Encoder
) throws func filtered(by: ProductFilter
) -> PackageDependency
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.
Available in PackageGraph
Instance members
var packageRef: PackageReference
Create the package reference object for the dependency.
func toConstraintRequirement(
) throws -> PackageRequirement Returns the constraint requirement representation.