Crates.io | poeledger-economy-data |
lib.rs | poeledger-economy-data |
version | 0.3.0 |
source | src |
created_at | 2023-07-25 04:18:17.49841 |
updated_at | 2023-08-17 07:37:15.153415 |
description | Contains types to be used with poe.ninja data dumps |
homepage | https://poeledger.com |
repository | https://github.com/mattsre/poeledger.com |
max_upload_size | |
id | 925183 |
size | 7,449 |
A Rust crate and generated Typescript lib for converting poe.ninja CSV data dumps into usable Rust structs
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