rs2-cache

Build API Crate dependency status OSRS Version Discord

A RS2 cache library written in Rust, based on the OpenRS2 implementation.

It should be noted: RS2 also includes Old School Runescape.

Installation

Add the following to your Cargo.toml file:

toml [dependencies] rs2-cache = "0.1.0"

Example

```rust use rs2cache::Cache;

fn main() -> Result<(), osrscache::Error> { let cache = Cache::open("./cache")?;

let index_id = 2; // Config index
let archive_id = 10; // Item definitions archive
let file_id = 1042; // Blue Partyhat file

let buffer = cache.read(index_id, archive_id, file_id)?;

Ok(())

} ```

Contributing

If you have suggestions for features, or want to add for example a new loader for the cache, feel free to make a pull request. For bigger features it is advised to open an issue in order to discuss it beforehand.

Credits