0.3.0 • Published 3 years ago
@poeledger/economy-data v0.3.0
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.tsSome types can't be mapped to Typescript, such as NaiveDate from chrono, so we must manually replace this with Date in the generated bindings
0.3.0
3 years ago