poeledger-economy-data

Crates.iopoeledger-economy-data
lib.rspoeledger-economy-data
version0.3.0
sourcesrc
created_at2023-07-25 04:18:17.49841
updated_at2023-08-17 07:37:15.153415
descriptionContains types to be used with poe.ninja data dumps
homepagehttps://poeledger.com
repositoryhttps://github.com/mattsre/poeledger.com
max_upload_size
id925183
size7,449
Matt Conway (mattsre)

documentation

https://docs.rs/poeledger-economy-data

README

poeledger-economy-data

A Rust crate and generated Typescript lib for converting poe.ninja CSV data dumps into usable Rust structs

Typscript Generation

The Rust library is annotated with typeshare annotations as needed, and the Typeshare CLI can be used to generate a basic Typescript library to keep types in sync between the two languages. Here's the Typeshare CLI command to use:

typeshare . --lang=typescript --output-file=generated/lib.ts

Some types can't be mapped to Typescript, such as NaiveDate from chrono, so we must manually replace this with Date in the generated bindings

Commit count: 19

cargo fmt