# Functions
BazelLabelFromTarget creates a Bazel label from a Swift target.
No description provided by the author
CodeDirForLocalPackage returns the path to the dependency's code.
CodeDirForRemotePackage returns the path to the dependency's code.
FilterFiles returns a list of Swift source files excluding `Package.swift`.
Imports returns the imports for Gazelle indexing.
IsBuiltInFramework determines if the module is built into the Swift standard library.
IsBuiltInSwiftModule determines if the module is built into the Swift standard library.
IsSwiftRuleKind determines whether to provided rule kind is a Swift rule.
ModuleDir returns the module root directory.
ModulemapBazelLabelFromTargetLabel creates a Bazel label for a modulemap target from the corresponding target label.
ModuleName returns the module name from a Swift rule declaration.
NewBazelRepo returns a Bazel repo for a Swift package.
NewDependencyIndex creates an empty dependency index.
NewDependencyIndexFromJSON creates a dependency index from JSON.
No description provided by the author
NewHTTPArchiveFromRule returns an HTTPArchive from a repository rule.
NewLabel creates a Bazel label from a label string.
NewLabelStr creates a label string.
NewModule creates a new module.
NewModuleFromLabelStruct is a convenience function because label.New returns a struct, not a pointer.
NewModuleFromTarget returns a module from the specified Swift target.
NewModuleIndex creates a new module index populated with the provided modules.
No description provided by the author
No description provided by the author
NewPatchesFromYAML reads the provided YAML returning a map of patches organized by Swift package identity.
No description provided by the author
NewProductFromPkgInfoProduct returns a Swift product based upon a Swift manifest product.
NewProductIndex creates a product index populated with the provided products.
NewProductIndexKey creates a product index key from a package identity and product name.
RepoNameFromIdentity returns a Bazel repository name from a Swift package identity/name.
RepoRuleFromBazelRepo returns a repository rule declaration for a Swift Bazel repository.
RulesFromProtos returns the Bazel build rule declarations for the provided source files.
RulesFromSrcs returns the Bazel build rule declarations for the provided source files.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Repository Rule.
SwiftProtoPackageKey - Private attribute key used to augment generated swift_proto_library rules with a SwiftProtoPackage.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
A BazelRepo represents a Swift package as a Bazel repository for an external dependency.
A DependencyIndex encapsulates the indexes used to lookup Swift modules and products.
A HTTPArchive represents Swift module information found in a Bazel `http_archive` declaration.
No description provided by the author
Module represents a Swift module mapped to a Bazel target.
No description provided by the author
No description provided by the author
Patch represents the parameters needed to patch a Swift package.
A Product represents a Swift package product.
No description provided by the author
SwiftProtoPackage - Holds information about the proto package from which a swift_proto_library was generated.
# Type aliases
A LabelStr represents a Bazel label serialized as a string.
A LabelStrs represents a slice of label strings.
A ModuleIndex represents an index organized by module name.
A Modules represents a slice of Swift modules.
A ModuleToProductsIndex maps a module name to the products to which it belongs (i.e., has membership).
A ModuleType is an enum for the type of Swift module.
No description provided by the author
A ProductIndex represents products organized by a unique key.
A ProductIndexKey represents the key used to index products.
No description provided by the author
No description provided by the author
No description provided by the author
A ProductType is an enum for a Swift product type.