PluginUsage
Represents a target’s usage of a plugin target or product.
enum PluginUsageRepresents a target’s usage of a plugin target or product.
enum PluginUsageimport PackageModelstruct TargetDescriptionThe description of an individual module.
case plugin(name: String, package: String?)init(name: String, dependencies: [TargetDescription.Dependency] = [], path: String? = nil, url: String? = nil, exclude: [String] = [], sources: [String]? = nil, resources: [TargetDescription.Resource] = [], publicHeadersPath: String? = nil, type: TargetDescription.TargetKind = .regular, packageAccess: Bool = true, pkgConfig: String? = nil, providers: [SystemPackageProviderDescription]? = nil, pluginCapability: TargetDescription.PluginCapability? = nil, settings: [TargetBuildSettingDescription.Setting] = [], checksum: String? = nil, pluginUsages: [TargetDescription.PluginUsage]? = nil) throws let checksum: String?The binary target checksum.
var dependencies: [TargetDescription.Dependency] { get }The declared target dependencies.
let exclude: [String]The exclude patterns.
var isTest: Bool { get }Returns true if the target type is test.
let name: StringThe name of the target.
let packageAccess: BoolIf true, access to package declarations from other targets is allowed. APIs is not allowed from outside.
let path: String?The custom path of the target.
let pkgConfig: String?The pkg-config name of a system library target.
let pluginCapability: TargetDescription.PluginCapability?The declared capability for a package plugin target.
let pluginUsages: [TargetDescription.PluginUsage]?The usages of package plugins by the target.
let providers: [SystemPackageProviderDescription]?The providers of a system library target.
let publicHeadersPath: String?The custom public headers path.
let resources: [TargetDescription.Resource]The explicitly declared resources of the target.
let settings: [TargetBuildSettingDescription.Setting]The target-specific build settings declared in this target.
let sources: [String]?The custom sources of the target.
let type: TargetDescription.TargetKindThe type of target.
let url: String?The url of the binary target artifact.
enum DependencyRepresents a target’s dependency on another entity.
enum PluginCapabilityRepresents the declared capability of a package plugin.
enum PluginCommandIntentenum PluginNetworkPermissionScopeenum PluginPermissionstruct Resourceenum TargetKindThe target kind.
typealias TargetType = TargetDescription.TargetKindprotocol CopyableA type whose values can be implicitly or explicitly copied.
protocol DecodableA type that can decode itself from an external representation.
protocol EncodableA type that can encode itself to an external representation.
protocol EquatableA type that can be compared for value equality.
protocol Escapableprotocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
init(from decoder: any Decoder) throws func encode(to encoder: any Encoder) throws static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.