Swift Package Manager as a library
Include Swift Package Manager as a dependency in your Swift package.
Overview
Swift Package Manager has a library based architecture and the top-level library product is called libSwiftPM. Other packages can add SwiftPM as a package dependency and create powerful custom build tools on top of libSwiftPM.
A subset of libSwiftPM that includes only the data model (without the package manager’s build system) is available as libSwiftPMDataModel. Any one client should depend on one or the other, but not both.
See Also
Guides
Creating a Swift packageSetting the Swift tools versionAdding dependencies to a Swift packageResolving and updating dependenciesCreating C language targetsUsing build configurationsPackaging based on the version of SwiftBundling resources with a Swift packageReleasing and publishing a Swift packageGenerating Software Bill of Materials (SBOM)Continuous Integration WorkflowsPluginsModule AliasingUsing a package registryPackage Collections