8 releases (breaking)
| 0.9.0 | Jun 4, 2025 |
|---|---|
| 0.8.0 | Apr 24, 2025 |
| 0.7.0 | Feb 8, 2025 |
| 0.6.0 | Nov 22, 2024 |
| 0.2.0 | Apr 11, 2023 |
#2669 in Text processing
790 downloads per month
Used in albion_terminal_rpg
1MB
16K
SLoC
A library for converting csv to a table.
It uses tabled as a rendering backend.
Install
Add the library to a dependency list.
[dependencies]
csv_to_table = "0.3"
Usage
There's 2 approaches the library provides.
- In memory approach; where we load CSV into memory and then construct a table.
- Sniffing a csv; so the used memory will be limited.
- Setting your constrains so no memory will be used.
| Example of in memory approach |
|---|
|
| Result |
|
| Example of sniffing approach |
|---|
|
| Result |
Notice that the last 2 rows are truncated. |
Dependencies
~3.5MB
~52K SLoC