doc(rust): minor fixes for Rust quick start. (#878)

This commit is contained in:
Chang She
2024-01-28 11:40:52 -08:00
committed by Weston Pace
parent e7fdb931de
commit 1d0578ce25

View File

@@ -25,10 +25,10 @@
=== "Rust"
```shell
cargo install vectordb
cargo add vectordb
```
!!! info "Rust crate is installed as source. You need to install protobuf."
!!! info "To use the vectordb create, you first need to install protobuf."
=== "macOS"
@@ -42,6 +42,8 @@
sudo apt install -y protobuf-compiler libssl-dev
```
!!! info "Please also make sure you're using the same version of Arrow as in the [vectordb crate](https://github.com/lancedb/lancedb/blob/main/Cargo.toml)"
## How to connect to a database
=== "Python"
@@ -69,7 +71,7 @@
}
```
!!! info "See [examples/simple.rs](https://github.com/lancedb/lancedb/tree/main/rust/vectordb/src/examples/simple.rs) for a full working example."
!!! info "See [examples/simple.rs](https://github.com/lancedb/lancedb/tree/main/rust/vectordb/examples/simple.rs) for a full working example."
LanceDB will create the directory if it doesn't exist (including parent directories).