pkg_search_deps() returns the packages whose topics package's
documentation can link to: the packages declared in its Depends,
Imports, and Suggests fields, followed by the base packages, which are always available. The result is
cached alongside the package's topic index, so it remains valid until
pkg_cache_reset() is called.