-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update documentation to match current CLI/usage (#595)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Loading branch information
1 parent
faffad6
commit c6dbf1e
Showing
9 changed files
with
245 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
## Building from scratch | ||
To reduce compile times, we recommend using a pre-built version of `rocksdb`, either from the system package manager or e.g. via `conda`: | ||
|
||
```bash | ||
# Ubuntu | ||
sudo apt-get install librocksdb-dev | ||
|
||
# Conda | ||
conda install -c conda-forge rocksdb | ||
``` | ||
|
||
In either case, either add | ||
```toml | ||
[env] | ||
ROCKSDB_LIB_DIR = "/usr/lib/" # in case of the system package manager, adjust the path accordingly for conda | ||
SNAPPY_LIB_DIR = "/usr/lib/" # same as above | ||
``` | ||
to `.cargo/config.toml` or set the environment variables `ROCKSDB_LIB_DIR` and `SNAPPY_LIB_DIR` to the appropriate paths: | ||
|
||
```bash | ||
export ROCKSDB_LIB_DIR=/usr/lib/ | ||
export SNAPPY_LIB_DIR=/usr/lib/ | ||
``` | ||
|
||
By default, the environment variables are defined in the `.cargo/config.toml` as described above, i.e. may need adjustments if not using the system package manager. | ||
|
||
You will need a recent version of protoc, e.g.: | ||
|
||
```bash | ||
bash utils/install-protoc.sh | ||
export PATH=$PATH:$HOME/.local/share/protoc/bin | ||
``` | ||
|
||
To build the project, run: | ||
```bash | ||
cargo build --release | ||
``` | ||
|
||
To install the project locally, run: | ||
```bash | ||
cargo install --path . | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Implementation notes. | ||
# Implementation notes | ||
|
||
## Frequency Databases | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.