#dump #poe #data #ninja #price #date

poeledger-economy-data

Contains types to be used with poe.ninja data dumps

4 releases (2 breaking)

0.3.0 Aug 17, 2023
0.2.0 Aug 10, 2023
0.1.1 Aug 1, 2023
0.1.0 Jul 25, 2023

#6 in #poe

31 downloads per month

MIT license

7KB
175 lines

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

Dependencies

~1.7–7.5MB
~58K SLoC