8 releases (5 breaking)

0.6.0 Feb 9, 2024
0.5.0 Apr 5, 2023
0.4.1 May 11, 2022
0.3.0 Sep 26, 2021
0.1.0 Jan 4, 2020

#552 in Parser implementations

Download history 1/week @ 2024-02-13 14/week @ 2024-02-20 98/week @ 2024-02-27 26/week @ 2024-03-05 15/week @ 2024-03-12 9/week @ 2024-03-26 36/week @ 2024-04-02

61 downloads per month
Used in 3 crates

MIT license

89KB
2.5K SLoC

lta-models

This repository contains the data structures required to interact with LTA's datamall APIs. All data structures implements Serialize and Deserialize.

Cargo.toml setup

# extra features available: fastfloat
lta-models = { version = "0.6.0" }

Supported formats

Format Supported? Tested?
JSON
Bincode
Flexbuffer
MessagePack

Performance & fast-float implementation

Some of the deserialization code may benefit from using the fastfloat feature, but during testing the biggest performance improvement can be seen when you swap out the system allocator to something faster like mimalloc or jemalloc

How to use this?

You can use this to deserialize LTA's datamall APIs. You can take a look at lta-rs for an example.

Is there anything that I need to do to use fastfloat?

Just add the feature to your Cargo.toml. You don't have to do anything else.

License

lta-models is licensed under MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

Dependencies

~3.5–5.5MB
~100K SLoC