Crates.io | flashpoint-archive |
lib.rs | flashpoint-archive |
version | 0.9.0 |
source | src |
created_at | 2024-01-15 13:10:09.331729 |
updated_at | 2024-08-01 12:38:59.229467 |
description | Library to access Flashpoint Archive's database and misc related functions |
homepage | https://flashpointarchive.org/ |
repository | https://github.com/FlashpointProject/FPA-Rust/ |
max_upload_size | |
id | 1100325 |
size | 266,682 |
Rust library for accessing the local database and misc features of the Flashpoint Archive.
Project website: https://flashpointarchive.org/
napi
- Adds napi-rs attrs to structs
use flashpoint_archive::FlashpointArchive;
use flashpoint_archive::games::search::parse_user_input;
fn main() {
let archive = FlashpointArchive::new();
archive.load_database(TEST_DATABASE).expect("Failed to open database");
let mut search = parse_user_input("Sonic platform:Flash");
search.limit = 9999999; // Default 1000 limit for pages
let games = archive.find_games(search).expect("Failed to search");
}