Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Package

mattt edited this page Oct 22, 2020 · 2 revisions

Package

Information about a Swift package as provided by its manifest.

public struct Package: Equatable

Use JSONDecoder to decode a Package value from the output of running swift package dump-package in a directory containing a valid Package.swift manifest.

Inheritance

Decodable, Equatable

Initializers

init(from:)

public init(from decoder: Decoder) throws

Properties

name

The name of the package.

let name: String

products

The products provided by the package.

let products: [Product]

dependencies

The dependencies used by the package.

let dependencies: [Dependency]

targets

The targets defined in the package.

let targets: [Target]

platforms

The platforms supported by the package.

let platforms: [SupportedPlatform]

cModuleName

The name used for C modules.

let cModuleName: String?

cLanguageStandard

The C programming language standard used by the package.

let cLanguageStandard: String?

cxxLanguageStandard

The C++ programming language standard used by the package.

let cxxLanguageStandard: String?

toolsVersion

Declares the minimum version of Swift required to build this package.

let toolsVersion: String