The workspace rules and functions are the primary interface for
rules_spm
. If you are just trying to leverage third-party Swift packages in your Bazel build,
check out the quickstart and review the workspace
rules.
If you are interested in viewing documentation about the rules, providers and APIs that are used to build and expose targets from Swift packages, check out their respective documentation.