flashpoint-archive

Crates.ioflashpoint-archive
lib.rsflashpoint-archive
version0.9.0
sourcesrc
created_at2024-01-15 13:10:09.331729
updated_at2024-08-01 12:38:59.229467
descriptionLibrary to access Flashpoint Archive's database and misc related functions
homepagehttps://flashpointarchive.org/
repositoryhttps://github.com/FlashpointProject/FPA-Rust/
max_upload_size
id1100325
size266,682
Colin (colin969)

documentation

README

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

Usage

User input example

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");
}
Commit count: 48

cargo fmt