# Persist index for \`/rustdoc\` in LMDB \(\#12988\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 85acc2be4467a65203452a120063fad53e6833b6

Requested commit: 85acc2be4467a65203452a120063fad53e6833b6

Commit: 85acc2be4467a65203452a120063fad53e6833b6

Tree: 8e1b53fd823a8e9c63a89343a770172f02d6ba11

Author: Marshall Bowers

Committer: GitHub

## Message

```
Persist index for `/rustdoc` in LMDB (#12988)

This PR updates the `/rustdoc` command with persistence for the
documented rustdoc items.

Now when you run `/rustdoc --index <CRATE_NAME>` it will index the crate
and store the results in LMDB.

The documented items will then be read from the database when searching
using `/rustdoc` and persist across restarts of Zed.

Release Notes:

- N/A
```

## Parents

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

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