refractiveindex.info-adapters
Adapters to transform the refractiveindex.info database into key-value stores
Development
Cloning this repository
Git provides two options to clone this repository, which contains the database as a submodule:
Recurse submodules
# Assuming you're using SSH and not HTTPS
git clone --recurse-submodules git@github.com:kmdouglass/refractiveindex.info-adapters.git
Init and update
# Assuming you're using SSH and not HTTPS
git clone git@github.com:kmdouglass/refractiveindex.info-adapters.git
cd refractiveindex.info-database
git submodule init
git submodule update
Updating the database
cd refractiveindex.info-database
git fetch
git merge origin/master
Test and format
cargo test
cargo fmt
Run with Cargo
Create a single-file JSON store of the RefractiveIndex.info database
cargo run -- store
Create a single-file bitcode store of the RefractiveIndex.info database
- The database is in
refractiveindex.info-database/database/
cargo run -- -f bitcode store -p refractiveindex.info-database/database/
Get help
cargo run -- --help