This fork's sole purpose is to add prebuilds for Linux ARM to reduce install time on ARM-based systems.
Add to your project using:
yarn add @farcaster/rocksdb
import AbstractRocksDB from '@farcaster/rocksdb';
This project uses Git Submodules. This means that you should clone it recursively if you're planning on working on it:
$ git clone --recurse-submodules https://github.com/Level/rocksdb.git
Alternatively, you can initialize submodules after cloning:
$ git submodule update --progress --init --recursive
- Increment the version:
npm version ..
- Push to GitHub:
git push --follow-tags
- Wait for CI to complete
- Download prebuilds into
./prebuilds
:npm run download-prebuilds
- Optionally verify loading a prebuild:
npm run test-prebuild
- Optionally verify which files npm will include:
canadian-pub
- Finally:
npm publish
rocksdb
builds on the excellent work of the LevelDB and Snappy teams from Google and additional contributors to the LevelDB fork by Facebook. LevelDB and Snappy are both issued under the New BSD License. A large portion of rocksdb
Windows support comes from the Windows LevelDB port (archived) by Krzysztof Kowalczyk (@kjk
). If you're using rocksdb
on Windows, you should give him your thanks!