Flashpoint Archive Rust Library
Rust library for accessing the local database and misc features of the Flashpoint Archive.
Project website: https://flashpointarchive.org/
Feature flags
napi
- Adds napi-rs attrs to structs
Test
- Copy test db from https://download.unstable.life/testing/flashpoint.sqlite to
crates/flashpoint-archive/benches
- Run a simple test like
cargo test -p flashpoint-archive count_games
to force a migrationcargo test -p flashpoint-archive
Build
cargo build -p flashpoint-archive
Node binding:
cd bindings/binding-node
npm install
- Swap for path in cargo.toml -
flashpoint-archive = { path = "../../crates/flashpoint-archive", features = ["napi"] }
npm run build
Dev node binding:
cd bindings/binding-node
npm link
cd <launcher-dev-folder>
npm link @fparchive/flashpoint-archive
Usage
User input example
use FlashpointArchive;
use parse_user_input;