The rules and macros described below are used to define Gazelle targets to aid in the generation and maintenance of Swift package dependencies.
On this page:
swift_deps_index(name, direct_dep_pkg_infos)
Generates a Swift dependencies index file that is used by other tooling (e.g., Swift Gazelle plugin).
ATTRIBUTES
Name | Description | Type | Mandatory | Default |
---|---|---|---|---|
name | A unique name for this target. | Name | required | |
direct_dep_pkg_infos | A dict where the key is the label for a Swift package's pkg_info.json file and the value is the Swift package's identity value. |
Dictionary: Label -> String | optional | {} |