# Start work on genericizing \`/rustdoc\` \(\#13745\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/746038128523dcefaec47add5a13e1d9afdf55bc)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 746038128523dcefaec47add5a13e1d9afdf55bc

Requested commit: 746038128523dcefaec47add5a13e1d9afdf55bc

Commit: 746038128523dcefaec47add5a13e1d9afdf55bc

Tree: 066e0818be7286da9042e69890439bd6097825dd

Author: Marshall Bowers

Committer: GitHub

## Message

```
Start work on genericizing `/rustdoc` (#13745)

This PR begins the process of making the backing infrastructure for the
`/rustdoc` command more generic such that it can be applied to
additional documentation providers.

In this PR we:

- Rename the `rustdoc` crate to `indexed_docs` as a more general-purpose
name
- Start moving rustdoc-specific functionality into
`indexed_docs::providers::rustdoc`
- Add an `IndexedDocsRegistry` to hold multiple `IndexedDocsStore`s (one
per provider)

We haven't yet removed the rustdoc-specific bits in the `DocsIndexer`.
That will follow soon.

Release Notes:

- N/A
```

## Parents

- [eab98eb9c9d531d386a8ef9b59e1b8f88b6eb0b1](https://git.cafe/gitcafe/zed/commit/eab98eb9c9d531d386a8ef9b59e1b8f88b6eb0b1?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/746038128523dcefaec47add5a13e1d9afdf55bc?format=markdown)
